diff options
author | Aurélien Zanelli <aurelien.zanelli@parrot.com> | 2013-05-27 17:54:31 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-05-27 19:21:31 +0400 |
commit | fcecd29abf32164326e568acdcdf7d8e877b33b1 (patch) | |
tree | da42dfa27f150bea96d6ba7e4bc3db97698c2b66 | |
parent | 0fed074b0418f0b7c36e20c04841b83fd5fd7912 (diff) |
Check if opus_compare is executable in run_vectors.sh
If opus_compare doesn't exist or isn't executable, tests failed normally
which could be misleading.
So test for existence and mode to avoid this ambiguity.
-rwxr-xr-x | tests/run_vectors.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run_vectors.sh b/tests/run_vectors.sh index 1cc445de..116a743f 100755 --- a/tests/run_vectors.sh +++ b/tests/run_vectors.sh @@ -57,6 +57,11 @@ else exit 0 fi +if [ ! -x $OPUS_COMPARE ]; then + echo ERROR: Compare program not found: $OPUS_COMPARE + exit 1 +fi + if [ -x $OPUS_DEMO ]; then echo Decoding with $OPUS_DEMO else |