diff options
| author | Simon Tatham <anakin@pobox.com> | 2021-09-06 10:57:40 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2021-09-06 10:57:40 +0100 |
| commit | 6691ad180cdd6f80673c49392c401ba8d6c5d3e7 (patch) | |
| tree | 2c89fdca036ba5f926a428e8df8c0d0a273492a6 /benchmark.sh | |
| parent | c108271b44c9607fce88499d794cbf1648213f1d (diff) | |
| download | puzzles-6691ad180cdd6f80673c49392c401ba8d6c5d3e7.zip puzzles-6691ad180cdd6f80673c49392c401ba8d6c5d3e7.tar.gz puzzles-6691ad180cdd6f80673c49392c401ba8d6c5d3e7.tar.bz2 puzzles-6691ad180cdd6f80673c49392c401ba8d6c5d3e7.tar.xz | |
Fix benchmark.sh for the new cmake world.
It relied on reading gamedesc.txt to find a list of puzzle binaries to
run. But gamedesc.txt is now specific to the Windows build (since it
contains Windows executable names), and isn't available in the Unix
cmake build directory.
Fixed by making a simpler gamelist.txt available on all platforms.
Diffstat (limited to 'benchmark.sh')
| -rwxr-xr-x | benchmark.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/benchmark.sh b/benchmark.sh index b3af277..3e24491 100755 --- a/benchmark.sh +++ b/benchmark.sh @@ -2,11 +2,15 @@ # Run every puzzle in benchmarking mode, and generate a file of raw # data that benchmark.pl will format into a web page. +# +# Expects to be run in the cmake build directory, where it can find +# both the game binaries themselves and the file gamelist.txt that +# lists them. # If any arguments are provided, use those as the list of games to -# benchmark. Otherwise, read the full list from gamedesc.txt. +# benchmark. Otherwise, read the full list from gamelist.txt. if test $# = 0; then - set -- $(cut -f1 -d: < gamedesc.txt) + set -- $(cat gamelist.txt) fi failures=false |