Commit 6c7281f4 authored by Stefan Westerfeld's avatar Stefan Westerfeld

TESTS: add test for short payload

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent d80a8ca8
check: detect-speed-test block-decoder-test clip-decoder-test pipe-test check: detect-speed-test block-decoder-test clip-decoder-test pipe-test short-payload-test
EXTRA_DIST = detect-speed-test.sh block-decoder-test.sh clip-decoder-test.sh pipe-test.sh EXTRA_DIST = detect-speed-test.sh block-decoder-test.sh clip-decoder-test.sh pipe-test.sh short-payload-test.sh
detect-speed-test: detect-speed-test:
Q=1 $(top_srcdir)/tests/detect-speed-test.sh Q=1 $(top_srcdir)/tests/detect-speed-test.sh
...@@ -13,3 +13,6 @@ clip-decoder-test: ...@@ -13,3 +13,6 @@ clip-decoder-test:
pipe-test: pipe-test:
Q=1 $(top_srcdir)/tests/pipe-test.sh Q=1 $(top_srcdir)/tests/pipe-test.sh
short-payload-test:
Q=1 $(top_srcdir)/tests/short-payload-test.sh
#!/bin/bash
source test-common.sh
IN_WAV=short-playload-test.wav
OUT_WAV=short-playload-test-out.wav
$AUDIOWMARK test-gen-noise $IN_WAV 200 44100 || die "failed to generate noise"
audiowmark_add --short 12 $IN_WAV $OUT_WAV abc
audiowmark_cmp --short 12 $OUT_WAV abc
audiowmark_add --short 16 $IN_WAV $OUT_WAV abcd
audiowmark_cmp --short 16 $OUT_WAV abcd
audiowmark_add --short 20 $IN_WAV $OUT_WAV abcde
audiowmark_cmp --short 20 $OUT_WAV abcde
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