[libav-devel] [PATCH 3/3] Add probe fate tests to test for regressions in detecting media types.

Alex Converse alex.converse at gmail.com
Fri May 4 01:33:17 CEST 2012


From: "Ronald S. Bultje" <rsbultje at gmail.com>

Signed-off-by: Alex Converse <alex.converse at gmail.com>
---
 tests/Makefile       |    1 +
 tests/fate-run.sh    |    4 ++++
 tests/fate/probe.mak |   20 ++++++++++++++++++++
 3 files changed, 25 insertions(+), 0 deletions(-)
 create mode 100644 tests/fate/probe.mak

diff --git a/tests/Makefile b/tests/Makefile
index 19fbe11..a8db07f 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -48,6 +48,7 @@ include $(SRC_PATH)/tests/fate/microsoft.mak
 include $(SRC_PATH)/tests/fate/mp3.mak
 include $(SRC_PATH)/tests/fate/mpc.mak
 include $(SRC_PATH)/tests/fate/pcm.mak
+include $(SRC_PATH)/tests/fate/probe.mak
 include $(SRC_PATH)/tests/fate/prores.mak
 include $(SRC_PATH)/tests/fate/qt.mak
 include $(SRC_PATH)/tests/fate/qtrle.mak
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 92d6dad..e1a91c7 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -71,6 +71,10 @@ run(){
     $target_exec $target_path/"$@"
 }
 
+probe(){
+    run avprobe -show_format_entry format_name -v 0 "$@"
+}
+
 avconv(){
     run avconv -nostats -threads $threads -thread_type $thread_type -cpuflags $cpuflags "$@"
 }
diff --git a/tests/fate/probe.mak b/tests/fate/probe.mak
new file mode 100644
index 0000000..5583d39
--- /dev/null
+++ b/tests/fate/probe.mak
@@ -0,0 +1,20 @@
+FATE_PROBE_FORMAT += fate-probe-format-roundup997
+fate-probe-format-roundup997:  CMD = probe $(SAMPLES)/probe-format/roundup997
+fate-probe-format-roundup997:  REF = mpeg
+
+FATE_PROBE_FORMAT += fate-probe-format-roundup1383
+fate-probe-format-roundup1383: CMD = probe $(SAMPLES)/probe-format/roundup1383
+fate-probe-format-roundup1383: REF = mp3
+
+FATE_PROBE_FORMAT += fate-probe-format-roundup1414
+fate-probe-format-roundup1414: CMD = probe $(SAMPLES)/probe-format/roundup1414
+fate-probe-format-roundup1414: REF = mpeg
+
+FATE_PROBE_FORMAT += fate-probe-format-roundup2015
+fate-probe-format-roundup2015: CMD = probe $(SAMPLES)/probe-format/roundup2015
+fate-probe-format-roundup2015: REF = dv
+
+FATE_TESTS += $(FATE_PROBE_FORMAT)
+fate-probe-format: $(FATE_PROBE_FORMAT)
+
+$(FATE_PROBE_FORMAT): CMP = oneline
-- 
1.7.7.3



More information about the libav-devel mailing list