diff --git a/tests/block-decoder-test.sh b/tests/block-decoder-test.sh index b4b985e..0ec5304 100755 --- a/tests/block-decoder-test.sh +++ b/tests/block-decoder-test.sh @@ -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 diff --git a/tests/pipe-test.sh b/tests/pipe-test.sh index c3bc6d4..25046c8 100755 --- a/tests/pipe-test.sh +++ b/tests/pipe-test.sh @@ -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