[SCM] x265/experimental: Added autopkgtest

onovy at users.alioth.debian.org onovy at users.alioth.debian.org
Sat Aug 13 12:39:55 UTC 2016


The following commit has been merged in the experimental branch:
commit 19b8fc82ed16702aa40cdcfca02ad64742a687f1
Author: Ondřej Nový <onovy at debian.org>
Date:   Sat Aug 13 14:33:47 2016 +0200

    Added autopkgtest

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..21a29f3
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: encode-testimage
+Depends: ffmpeg, x265
+Restrictions: allow-stderr
diff --git a/debian/tests/encode-testimage b/debian/tests/encode-testimage
new file mode 100755
index 0000000..3f85c4c
--- /dev/null
+++ b/debian/tests/encode-testimage
@@ -0,0 +1,13 @@
+#!/bin/sh
+# autopkgtest check: Use ffmpeg to produce a 10s test image,
+# and use x265 to encode to H.265/HEVC
+
+set -e
+
+cd "$ADTTMP"
+
+ffmpeg -y -filter_complex testsrc -t 10 -pix_fmt yuv420p in.y4m
+x265 -o out.raw in.y4m
+ffprobe -of ini -show_streams out.raw | tee avprobe.txt
+grep "^codec_name=hevc" avprobe.txt
+grep "^codec_long_name=H.265" avprobe.txt

-- 
x265 packaging



More information about the pkg-multimedia-commits mailing list