summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonathan Lennox <jonathan@vidyo.com>2015-08-04 15:24:21 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2015-09-01 17:24:49 -0400
commit3a1dc9dc152634dd982dfc911d0015983677cbba (patch)
treef254f04b8a9c8200e1b95d1090be707774fb798f /tests
parent0bc1ecc2548b804d43f41c9c98541e40eb48509f (diff)
downloadopus-3a1dc9dc152634dd982dfc911d0015983677cbba.tar.gz
Make it possible to pass in paths to opus_demo and opus_compare.jon_patches
This patch lets you pass paths for opus_demo and opus_compare to the run_vectors.sh script. The motivation for this was for my aarch64 patches (forthcoming), which I've been testing under qemu. I want to run an emulated opus_demo, but a native opus_compare, so the script completes in a reasonable amount of time.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run_vectors.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run_vectors.sh b/tests/run_vectors.sh
index 116a743f..1d447c43 100755
--- a/tests/run_vectors.sh
+++ b/tests/run_vectors.sh
@@ -45,8 +45,8 @@ CMD_PATH=$1
VECTOR_PATH=$2
RATE=$3
-OPUS_DEMO=$CMD_PATH/opus_demo
-OPUS_COMPARE=$CMD_PATH/opus_compare
+: ${OPUS_DEMO:=$CMD_PATH/opus_demo}
+: ${OPUS_COMPARE:=$CMD_PATH/opus_compare}
if [ -d $VECTOR_PATH ]; then
echo Test vectors found in $VECTOR_PATH