mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Add test descriptions to the speedtest1 '-- begin' markers for potential display by the downstream JS code which uses those markers.
FossilOrigin-Name: e5b7006f0f57f10a490d7eaeb7df77251a2f684602fed8ff161d8ce60033e7bc
This commit is contained in:
@ -3,9 +3,13 @@
|
||||
# series of SQL files extracted from that file.
|
||||
infile=${1:?arg = speedtest1 --script output file}
|
||||
testnums=$(grep -e '^-- begin test' "$infile" | cut -d' ' -f4)
|
||||
if [ x = "x${testnums}" ]; then
|
||||
echo "Could not parse any begin/end blocks out of $infile" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
#echo testnums=$testnums
|
||||
for n in $testnums; do
|
||||
ofile=$(printf "speedtest1-%03d.sql" $n)
|
||||
sed -n -e "/^-- begin test $n\$/,/^-- end test $n\$/p" $infile > $ofile
|
||||
sed -n -e "/^-- begin test $n /,/^-- end test $n\$/p" $infile > $ofile
|
||||
echo -e "$n\t$ofile"
|
||||
done
|
||||
|
Reference in New Issue
Block a user