mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
Fail CI if tursodb output differs from sqlite in tpc-h queries
This commit is contained in:
parent
5dd1bca4d3
commit
e65742e5ff
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue