fate: add tests for testsrc.
authorNicolas George <nicolas.george@normalesup.org>
Sat, 25 Feb 2012 11:54:52 +0000 (12:54 +0100)
committerNicolas George <nicolas.george@normalesup.org>
Mon, 27 Feb 2012 13:45:13 +0000 (14:45 +0100)
This test uses the lavfi device and
is ready for more similar tests.

tests/lavfi-regression.sh
tests/ref/lavfi/testsrc [new file with mode: 0644]

index 74e5373..84fb757 100755 (executable)
@@ -76,6 +76,18 @@ if [ -n "$do_pixdesc" ]; then
     done
 fi
 
+do_lavfi_lavd() {
+    label=$1
+    graph=$2
+    shift 2
+    [ $test = $label ] || return 0
+    printf '%-20s' $label
+    run_avconv $DEC_OPTS -f lavfi -i $graph \
+        $ENC_OPTS -vcodec rawvideo $* -f nut md5:
+}
+
+do_lavfi_lavd "testsrc"              "testsrc=r=7:n=2:d=10"
+
 # TODO: add tests for
 # direct rendering,
 # chains with feedback loops
diff --git a/tests/ref/lavfi/testsrc b/tests/ref/lavfi/testsrc
new file mode 100644 (file)
index 0000000..3155e32
--- /dev/null
@@ -0,0 +1 @@
+testsrc             293ef5d915068333412acdceb2746a0a