Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Zanelli <aurelien.zanelli@parrot.com>2013-05-27 17:54:31 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-05-27 19:21:31 +0400
commitfcecd29abf32164326e568acdcdf7d8e877b33b1 (patch)
treeda42dfa27f150bea96d6ba7e4bc3db97698c2b66
parent0fed074b0418f0b7c36e20c04841b83fd5fd7912 (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-xtests/run_vectors.sh5
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