[SCM] bs1770gain/master: Run autopkgtest using valgrind if valgrind is installed.

pere at users.alioth.debian.org pere at users.alioth.debian.org
Thu Jun 25 07:12:56 UTC 2015


The following commit has been merged in the master branch:
commit 28f9ce0b60460f60adb370491f93644ef3b8a102
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Thu Jun 25 07:11:54 2015 +0000

    Run autopkgtest using valgrind if valgrind is installed.

diff --git a/debian/tests/test-cmd-tool b/debian/tests/test-cmd-tool
index 966fa31..39588ae 100755
--- a/debian/tests/test-cmd-tool
+++ b/debian/tests/test-cmd-tool
@@ -6,7 +6,12 @@ if [ -z "$BS1770GAIN" ] ; then
     BS1770GAIN=bs1770gain
 fi
 
+if type valgrind > /dev/null 2>&1 ; then
+    BS1770GAIN="valgrind $BS1770GAIN"
+fi
+
 at_exit() {
+    set +x
     echo "info: test exiting, removing $WORKDIR"
     rm -rf $WORKDIR
 }

-- 
bs1770gain packaging



More information about the pkg-multimedia-commits mailing list