[oggvideotools] 02/02: Adjust test scripts to run tests using valgrind.

Petter Reinholdtsen pere at moszumanska.debian.org
Sat Feb 27 19:03:07 UTC 2016


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

pere pushed a commit to branch master
in repository oggvideotools.

commit 4f561f8ea6a06f18f37cc998d5a3237ef213411b
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Fri Feb 26 21:03:08 2016 +0100

    Adjust test scripts to run tests using valgrind.
---
 debian/tests/control      |  2 +-
 debian/tests/test-oggcut  |  6 +++++-
 debian/tests/test-oggjoin | 10 +++++++---
 3 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index b9fcdc5..d96ea2e 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,4 +1,4 @@
 Tests: test-oggjoin, test-oggcut
-Depends: @, debconf, python-pygame, python-mecavideo
+Depends: @, debconf, python-pygame, python-mecavideo, valgrind
 Restrictions: allow-stderr
 
diff --git a/debian/tests/test-oggcut b/debian/tests/test-oggcut
index fce5832..025ae89 100755
--- a/debian/tests/test-oggcut
+++ b/debian/tests/test-oggcut
@@ -18,11 +18,15 @@ set -x
 
 cd $WORKDIR
 
+if type valgrind >/dev/null 2>&1 ; then
+    VALGRIND=valgrind
+fi
+
 echo "info: Running autopkgtest script $0"
 
 input=/usr/share/python-mecavideo/video/Effet_force_magnetique.ogv
 
-${TESTBINDIR}oggCut -s 500 -e 1000 "$input" out.ogv
+${VALGRIND} ${TESTBINDIR}oggCut -s 500 -e 1000 "$input" out.ogv
 
 if [ -e out.ogv ] ; then
    echo "success: Ogg Theora file out.ogv created."
diff --git a/debian/tests/test-oggjoin b/debian/tests/test-oggjoin
index 3e77a26..9a9909e 100755
--- a/debian/tests/test-oggjoin
+++ b/debian/tests/test-oggjoin
@@ -15,19 +15,23 @@ set -x
 
 cd $WORKDIR
 
+if type valgrind >/dev/null 2>&1 ; then
+    VALGRIND=valgrind
+fi
+
 echo "info: Running autopkgtest script $0"
 
 echo "info: Generating Ogg Theora file"
-${TESTBINDIR}oggSlideshow /usr/share/pixmaps/debian-logo.png
+${VALGRIND} ${TESTBINDIR}oggSlideshow /usr/share/pixmaps/debian-logo.png
 
 # Join it.
 echo "info: Copy Ogg Theora file using oggJoin."
-${TESTBINDIR}oggJoin out.ogv slideshow.ogv
+${VALGRIND} ${TESTBINDIR}oggJoin out.ogv slideshow.ogv
 
 # This should trigger the bug reported in bug #606224, which need an
 # audio file.
 echo "info: Copy Ogg Vorbis file using oggJoin."
-${TESTBINDIR}oggJoin out.ogv /usr/lib/python*/dist-packages/pygame/examples/data/house_lo.ogg
+${VALGRIND} ${TESTBINDIR}oggJoin out.ogv /usr/lib/python*/dist-packages/pygame/examples/data/house_lo.ogg
 
 if [ -e out.ogv ] ; then
    echo "success: Ogg Theora file out.ogv created."

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



More information about the pkg-xiph-commits mailing list