[libvorbis] 01/01: Add new autopkgtest script test-coupling-segfault to detect if bug #772877 is present.

Petter Reinholdtsen pere at moszumanska.debian.org
Wed Feb 10 20:00:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

pere pushed a commit to branch master
in repository libvorbis.

commit 4d34b891d27c5c8bc02560aa58f951f3033f75ec
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Wed Feb 10 19:59:56 2016 +0000

    Add new autopkgtest script test-coupling-segfault to detect if bug #772877 is present.
---
 debian/tests/control                |  4 ++--
 debian/tests/test-coupling-segfault | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index 295ef48..72fff11 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,2 @@
-Depends: @, build-essential, pysycache-i18n
-Tests: test-examples
+Depends: @, vorbis-tools, build-essential, pysycache-i18n, sound-icons, valgrind
+Tests: test-examples test-coupling-segfault
diff --git a/debian/tests/test-coupling-segfault b/debian/tests/test-coupling-segfault
new file mode 100755
index 0000000..01e6625
--- /dev/null
+++ b/debian/tests/test-coupling-segfault
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Test if the segfault reported in BTS report #772877 is still present
+# in the library.
+
+set -e
+
+retval=0
+
+cd $ADTTMP
+
+# Random wav file found in the Debian archive, from sound-icons
+cp /usr/share/sounds/sound-icons/cembalo-6.wav testinput.wav
+
+bugtrigger="--advanced-encode-option disable_coupling"
+
+if valgrind oggenc -b 80 -m 80 -M 80 $bugtrigger \
+    -o out.ogg testinput.wav 2>&1 ; then
+    echo "success: oggenc ran successfully."
+else
+    echo "error: oggenc did not succeed (crash?)"
+    retval=1
+fi
+
+exit $retval

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xiph/libvorbis.git



More information about the pkg-xiph-commits mailing list