1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

batch-runner.js: move generated SQL files into ./sql and start adding hand-written ones (like the Mandelbrot) to that set.

FossilOrigin-Name: 06c106a7d23e4486dbed092757b7588688226ad35539ecc31378a8497f59d1ec
This commit is contained in:
stephan
2022-08-30 10:04:08 +00:00
parent 429899ddad
commit fbf0f488cf
6 changed files with 40 additions and 18 deletions

View File

@ -7,9 +7,11 @@ if [ x = "x${testnums}" ]; then
echo "Could not parse any begin/end blocks out of $infile" 1>&2
exit 1
fi
odir=${infile%%/*}
if [ "$odir" = "$infile" ]; then odir="."; fi
#echo testnums=$testnums
for n in $testnums; do
ofile=$(printf "speedtest1-%03d.sql" $n)
ofile=$odir/$(printf "speedtest1-%03d.sql" $n)
sed -n -e "/^-- begin test $n /,/^-- end test $n\$/p" $infile > $ofile
echo -e "$n\t$ofile"
done