diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-28 23:28:52 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-28 23:50:01 +0100 |
commit | 1e7f9b0ec602e98055875139956aecc4c7daa89e (patch) | |
tree | a7d8f93ca13d9a5e612c52dba6f8ab85cdba6063 /tests | |
parent | c3f781c52ad79e84c1f315e765e849c944276671 (diff) | |
download | ffmpeg-streaming-1e7f9b0ec602e98055875139956aecc4c7daa89e.zip ffmpeg-streaming-1e7f9b0ec602e98055875139956aecc4c7daa89e.tar.gz |
tests: Fix running ffserver under qemu
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile | 2 | ||||
-rwxr-xr-x | tests/ffserver-regression.sh | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile index 19033b4..53d900b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -17,7 +17,7 @@ ffservertest: ffserver$(PROGSSUF)$(EXESUF) ffmpeg$(PROGSSUF)$(EXESUF) tests/vsyn @echo "Unfortunately ffserver is broken and therefore its regression" @echo "test fails randomly. Treat the results accordingly." @echo - $(SRC_PATH)/tests/ffserver-regression.sh $(FFSERVER_REFFILE) $(SRC_PATH)/tests/ffserver.conf + $(SRC_PATH)/tests/ffserver-regression.sh $(FFSERVER_REFFILE) $(SRC_PATH)/tests/ffserver.conf "$(TARGET_SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" APITESTSDIR := tests/api OBJDIRS += tests/data tests/vsynth1 tests/data/filtergraphs $(APITESTSDIR)/ diff --git a/tests/ffserver-regression.sh b/tests/ffserver-regression.sh index 0810181..5c8ddb1 100755 --- a/tests/ffserver-regression.sh +++ b/tests/ffserver-regression.sh @@ -1,5 +1,9 @@ #!/bin/sh +target_samples=$3 +target_exec=$4 +target_path=$5 + #perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf #perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_.asf>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf @@ -8,7 +12,7 @@ FILES=$(sed -n 's/^[^#]*<Stream \(.*\)>.*/\1/p' $2 | grep -v html) rm -f tests/feed1.ffm -./ffserver${PROGSUF} -d -f "$2" 2> /dev/null & +$target_exec ${target_path}/ffserver${PROGSUF} -d -f "$2" 2> /dev/null & FFSERVER_PID=$! echo "Waiting for feeds to startup..." sleep 2 |