summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-05-03 11:01:00 -0700
committerAlex Converse <alex.converse@gmail.com>2012-05-07 10:14:51 -0700
commit4bfa67bdad758e89a42dff9513fc353374fb1e04 (patch)
treea5e090757044fe23caa913c41b760478a66e4ebb /tests
parent40fa14f7755f601478aed831d77c2c1d37f564b4 (diff)
Add probe fate tests to test for regressions in detecting media types.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile1
-rwxr-xr-xtests/fate-run.sh4
-rw-r--r--tests/fate/probe.mak17
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index cbd3fd2434..56a8bb7df3 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -51,6 +51,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 8097eec426..a45e9a95b3 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -71,6 +71,10 @@ run(){
$target_exec $target_path/"$@"
}
+probefmt(){
+ 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 0000000000..8a1fd9a79f
--- /dev/null
+++ b/tests/fate/probe.mak
@@ -0,0 +1,17 @@
+FATE_PROBE_FORMAT += fate-probe-format-roundup997
+fate-probe-format-roundup997: REF = mpeg
+
+FATE_PROBE_FORMAT += fate-probe-format-roundup1383
+fate-probe-format-roundup1383: REF = mp3
+
+FATE_PROBE_FORMAT += fate-probe-format-roundup1414
+fate-probe-format-roundup1414: REF = mpeg
+
+FATE_PROBE_FORMAT += fate-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
+fate-probe-format-%: CMD = probefmt $(SAMPLES)/probe-format/$(@:fate-probe-format-%=%)