Browse Source

Add probe fate tests to test for regressions in detecting media types.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
tags/n0.11
Ronald S. Bultje Alex Converse 13 years ago
parent
commit
4bfa67bdad
3 changed files with 22 additions and 0 deletions
  1. +1
    -0
      tests/Makefile
  2. +4
    -0
      tests/fate-run.sh
  3. +17
    -0
      tests/fate/probe.mak

+ 1
- 0
tests/Makefile View File

@@ -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


+ 4
- 0
tests/fate-run.sh View File

@@ -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 "$@"
}


+ 17
- 0
tests/fate/probe.mak View File

@@ -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-%=%)

Loading…
Cancel
Save