From fcecd29abf32164326e568acdcdf7d8e877b33b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Zanelli?= <aurelien.zanelli@parrot.com>
Date: Mon, 27 May 2013 15:54:31 +0200
Subject: [PATCH] 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.
---
 tests/run_vectors.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/run_vectors.sh b/tests/run_vectors.sh
index 1cc445de2..116a743fe 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
-- 
GitLab