X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=run%2Ftests;h=ca4df7c60587d106400f97e9889dee0deb4408e6;hb=134af470d2f35745548ec4c581c43af230187f15;hp=c5dcac62eb23d18dc6ec259f0fb214a31af9f6a3;hpb=379432d6ed7a460601a70607a542ebb50bbf902f;p=libdcp.git diff --git a/run/tests b/run/tests index c5dcac62..ca4df7c6 100755 --- a/run/tests +++ b/run/tests @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash # # Run our test suite. @@ -23,6 +23,9 @@ if [ "$1" == "--debug" ]; then elif [ "$1" == "--valgrind" ]; then shift valgrind --tool="memcheck" $work/tests $private +elif [ "$1" == "--callgrind" ]; then + shift + valgrind --tool="callgrind" $work/tests $private $* else $work/tests $private $* fi @@ -68,7 +71,7 @@ fi rm -f $work/info.log for d in `find $private/metadata -mindepth 1 -maxdepth 1 -type d | sort -f -d`; do if [ `basename $d` != ".git" ]; then - $dcpinfo --ignore-missing-assets -k -s $d 2> /dev/null >> $work/info.log + $dcpinfo --ignore-missing-assets -k -s $d >> $work/info.log if [ "$?" != "0" ]; then echo "FAIL: dcpinfo failed for $d" exit 1