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

opus_build_test.sh « tests - gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b334ec16d6ac3124e21cb003d2e6a2f97b754ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

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

if [ $? -ne 0 ]
then
	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"

if [ $? -ne 0 ]
then
        echo Check found errors
        exit 1
else
	echo No error found
fi