]> git.ipfire.org Git - thirdparty/zstd.git/commit
[test] Fix playTests.sh with space in binary path 2053/head
authorNick Terrell <terrelln@fb.com>
Thu, 26 Mar 2020 22:04:15 +0000 (15:04 -0700)
committerNick Terrell <terrelln@fb.com>
Fri, 27 Mar 2020 02:52:19 +0000 (19:52 -0700)
commitef9e6fe2270bc1d9a9886fd064026dd7c1225695
tree65ffae001b2a5638ca23341aa3b3db7d9db556da
parentf5029e285f65860e57edf3685285e1fb8bc92cf9
[test] Fix playTests.sh with space in binary path

playTests.sh didn't work when `ZSTD_BIN` or `DATAGEN_BIN` had a space in
the path name. This happens for me because I split the cmake build
directory by compiler name, like "Clang 9.0.0".

The fix is to replace all instances of `$ZSTD` with the `zstd()`
function, and the replace `$DATAGEN` with `datagen()`. This will allow
us to change how we call zstd/datagen in the future without having to
change every callsite.
tests/playTests.sh