Mercurial > hg > sonic-annotator
comparison tests/test-audioformat/test-audioformat.sh @ 281:c8162c2992f8 piper-nopiper
Further test updates. The AF results should match to 3dp with different MAD builds. The onset position results hopefully should match completely now prefix sorted, let's see.
author | Chris Cannam |
---|---|
date | Tue, 29 Nov 2016 17:14:21 +0000 |
parents | e6379b2e1c5c |
children | ddcbbd85c1ea |
comparison
equal
deleted
inserted
replaced
280:cb29834ce827 | 281:c8162c2992f8 |
---|---|
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 || \ |