Mercurial > hg > sonic-annotator
comparison tests/test-audioformat/test-audioformat.sh @ 288:fd4a6183482f kapoor_1202
Merge from branch piper-nopiper. The next release will be based on this.
author | Chris Cannam |
---|---|
date | Fri, 02 Dec 2016 10:04:44 +0000 |
parents | c8162c2992f8 |
children | ddcbbd85c1ea |
comparison
equal
deleted
inserted
replaced
259:9e7d180be225 | 288:fd4a6183482f |
---|---|
26 fail "Internal error: no input audio file for extension $extension" | 26 fail "Internal error: no input audio file for extension $extension" |
27 | 27 |
28 $r -t $transform -w csv --csv-stdout $infile > $tmpfile2 2>/dev/null || \ | 28 $r -t $transform -w csv --csv-stdout $infile > $tmpfile2 2>/dev/null || \ |
29 fail "Fails to run transform $transform against audio file $infile" | 29 fail "Fails to run transform $transform against audio file $infile" |
30 | 30 |
31 if [ "$extension" = "wav" ]; then | 31 csvcompare $tmpfile2 $expected || \ |
32 csvcompare $tmpfile2 $expected || \ | 32 faildiff "Output mismatch for transform $transform for format $extension with audio file $infile" $tmpfile2 $expected |
33 faildiff "Output mismatch for transform $transform with audio file $infile" $tmpfile2 $expected | |
34 else | |
35 csvcompare $tmpfile2 $expected || \ | |
36 ( echo "NOTE: Output mismatch for transform $transform with audio file $infile" ; \ | |
37 echo "This may be the result of differences in the audio file decoder, so I am not" ; \ | |
38 echo "failing the test, but I recommend that you check the results." ) | |
39 fi | |
40 done | 33 done |
41 | 34 |
42 # Check the normalise flag | 35 # Check the normalise flag |
43 | 36 |
44 $r -d $amplplug -w csv --csv-stdout ${inbase}8quiet.wav 2>/dev/null | head > $tmpfile1 || \ | 37 $r -d $amplplug -w csv --csv-stdout ${inbase}8quiet.wav 2>/dev/null | head > $tmpfile1 || \ |