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:
Diffstat (limited to 'tests/opus_build_test.sh')
-rwxr-xr-xtests/opus_build_test.sh21
1 files changed, 10 insertions, 11 deletions
diff --git a/tests/opus_build_test.sh b/tests/opus_build_test.sh
index b334ec16..573f4473 100755
--- a/tests/opus_build_test.sh
+++ b/tests/opus_build_test.sh
@@ -1,30 +1,29 @@
#!/bin/sh
-tarball=`realpath $1`
-nb_tests=$2
-oldvectors=`realpath $3`
-newvectors=`realpath $4`
-base=`basename $tarball .tar.gz`
+tarball=`realpath "$1"`
+nb_tests="$2"
+oldvectors=`realpath "$3"`
+newvectors=`realpath "$4"`
+base=`basename "$tarball" .tar.gz`
-tar xvf $tarball > /dev/null 2>&1
-cd $base
+tar xvf "$tarball" > /dev/null 2>&1
+cd "$base"
if [ $? -ne 0 ]
then
- echo cannot go to $base
+ echo cannot go to "$base"
exit 1
fi
mkdir build_tests
configure_dir=`pwd`
-seq -w $nb_tests | parallel --halt now,fail=10 -j +2 "../random_config.sh build_tests/run_{} $configure_dir $oldvectors $newvectors"
+seq -w "$nb_tests" | parallel --halt now,fail=10 -j +2 -q ../random_config.sh "build_tests/run_{}" "$configure_dir" "$oldvectors" "$newvectors"
if [ $? -ne 0 ]
then
echo Check found errors
exit 1
else
- echo No error found
+ echo No error found
fi
-