Commit abe39588 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Run hls test during make check if --with-ffmpeg was used for building.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 149955ee
check: detect-speed-test block-decoder-test clip-decoder-test \
CHECKS = detect-speed-test block-decoder-test clip-decoder-test \
pipe-test short-payload-test sync-test sample-rate-test \
key-test
if COND_WITH_FFMPEG
CHECKS += hls-test
endif
EXTRA_DIST = detect-speed-test.sh block-decoder-test.sh clip-decoder-test.sh \
pipe-test.sh short-payload-test.sh sync-test.sh sample-rate-test.sh \
key-test.sh hls-test.sh
check: $(CHECKS)
detect-speed-test:
Q=1 $(top_srcdir)/tests/detect-speed-test.sh
......@@ -29,3 +35,6 @@ sample-rate-test:
key-test:
Q=1 $(top_srcdir)/tests/key-test.sh
hls-test:
Q=1 $(top_srcdir)/tests/hls-test.sh
......@@ -8,7 +8,7 @@ fi
set -e
HLS_DIR=hls-test
HLS_DIR=hls-test-dir.$$
mkdir -p $HLS_DIR
# generate input sample
......@@ -38,11 +38,11 @@ ffmpeg $FFMPEG_Q -y -i $HLS_DIR/as0m/out.m3u8 $HLS_DIR/test-output.wav
# detect watermark from wav
audiowmark_cmp --expect-matches 5 $HLS_DIR/test-output.wav $TEST_MSG
rm hls-test/as0*/*.ts
rm hls-test/as0*/out.m3u8
rmdir hls-test/as0*
rm hls-test/test-*.wav
rm hls-test/replay.m3u8
rmdir hls-test
rm $HLS_DIR/as0*/*.ts
rm $HLS_DIR/as0*/out.m3u8
rmdir $HLS_DIR/as0*
rm $HLS_DIR/test-*.wav
rm $HLS_DIR/replay.m3u8
rmdir $HLS_DIR
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