mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 13:54:27 +01:00
Fail CI if tursodb output differs from sqlite in tpc-h queries
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user