forked from xiph/opus
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix quoting and whitespace errors in build test
Reviewed by Jean-Marc Valin.
- Loading branch information
Showing
2 changed files
with
34 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters