Commit 113815ae authored by Stefan Westerfeld's avatar Stefan Westerfeld

TESTS: add a few more checks to existing tests

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 2f5f67d4
......@@ -9,5 +9,13 @@ audiowmark test-gen-noise $IN_WAV 200 44100
audiowmark_add $IN_WAV $OUT_WAV $TEST_MSG
audiowmark_cmp --expect-matches 5 $OUT_WAV $TEST_MSG
check_length $IN_WAV $OUT_WAV
audiowmark_add --test-no-limiter $IN_WAV $OUT_WAV $TEST_MSG
audiowmark_cmp --expect-matches 5 $OUT_WAV $TEST_MSG
check_length $IN_WAV $OUT_WAV
check_snr $IN_WAV $OUT_WAV 32.4
rm $IN_WAV $OUT_WAV
exit 0
......@@ -10,5 +10,7 @@ cat $IN_WAV | audiowmark_add - - $TEST_MSG > $OUT_WAV || die "watermark from pip
audiowmark_cmp --expect-matches 5 $OUT_WAV $TEST_MSG
cat $OUT_WAV | audiowmark_cmp --expect-matches 5 - $TEST_MSG || die "watermark detection from pipe failed"
check_length $IN_WAV $OUT_WAV
rm $IN_WAV $OUT_WAV
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment