Skip to content

Commit

Permalink
TESTS: add a few more checks to existing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Westerfeld <stefan@space.twc.de>
  • Loading branch information
swesterfeld committed Jun 7, 2024
1 parent 2f5f67d commit 113815a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/block-decoder-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions tests/pipe-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 113815a

Please sign in to comment.