Fail CI if tursodb output differs from sqlite in tpc-h queries

This commit is contained in:
Jussi Saurio
2025-08-26 11:19:29 +03:00
parent 5dd1bca4d3
commit e65742e5ff

View File

@@ -50,6 +50,8 @@ echo "Starting TPC-H query timing comparison..."
echo "The script might ask you to enter the password for sudo, in order to clear system caches."
clear_caches
exit_code=0
for query_file in $(ls "$QUERIES_DIR"/*.sql | sort -V); do
if [ -f "$query_file" ]; then
query_name=$(basename "$query_file")
@@ -85,6 +87,7 @@ for query_file in $(ls "$QUERIES_DIR"/*.sql | sort -V); do
if [ -n "$output_diff" ]; then
echo "Output difference:"
echo "$output_diff"
exit_code=1
else
echo "No output difference"
fi
@@ -96,3 +99,8 @@ done
echo "-----------------------------------------------------------"
echo "TPC-H query timing comparison completed."
if [ $exit_code -ne 0 ]; then
echo "Error: Output differences found"
exit $exit_code
fi