test suite restructure
This commit is contained in:
parent
a7fff9fa43
commit
9481667c16
12
src/run-test
12
src/run-test
|
@ -17,18 +17,22 @@ let nfail=0
|
||||||
|
|
||||||
for i in ../testdata/*/*.wav
|
for i in ../testdata/*/*.wav
|
||||||
do
|
do
|
||||||
|
dir="${i%/*}"
|
||||||
|
|
||||||
f="${i##*/}"
|
f="${i##*/}"
|
||||||
rate="${f#*-}"
|
rate="${f#*-}"
|
||||||
rate="${rate%%-*}"
|
rate="${rate%%-*}"
|
||||||
|
|
||||||
echo TEST ./minimodem "$i" "$rate"
|
txtnum="${i##*/}"
|
||||||
./minimodem "$i" "$rate" >$TMPDIR/out 2>$TMPDIR/err
|
txtnum="${txtnum%%-*}"
|
||||||
|
|
||||||
|
echo TEST ./minimodem "$rate" "$i"
|
||||||
|
./minimodem "$rate" "$i" >$TMPDIR/out 2>$TMPDIR/err
|
||||||
|
|
||||||
t="${f%%-*}"
|
t="${f%%-*}"
|
||||||
|
|
||||||
egrep 'CARRIER|TONE' $TMPDIR/err
|
egrep 'CARRIER|TONE' $TMPDIR/err
|
||||||
# sum -r ../testdata/$t-*.txt $TMPDIR/out
|
cmp $dir/${txtnum}-*.txt $TMPDIR/out
|
||||||
cmp ../testdata/$t-*.txt $TMPDIR/out
|
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "@@@ PASS $f"
|
echo "@@@ PASS $f"
|
||||||
|
|
Loading…
Reference in New Issue