add logging of command to valgrind log
authorJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 20 Nov 2006 05:29:59 +0000 (05:29 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 20 Nov 2006 05:29:59 +0000 (05:29 +0000)
test/test_flac.sh
test/test_metaflac.sh

index b381184..ae62908 100755 (executable)
@@ -58,6 +58,7 @@ flac --help 1>/dev/null 2>/dev/null || die "ERROR can't find flac executable"
 run_flac ()
 {
        if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then
+               echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=100 flac $*" >>test_flac.valgrind.log
                valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 flac $* 4>>test_flac.valgrind.log
        else
                flac $*
@@ -67,6 +68,7 @@ run_flac ()
 run_metaflac ()
 {
        if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then
+               echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=100 metaflac $*" >>test_flac.valgrind.log
                valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 metaflac $* 4>>test_flac.valgrind.log
        else
                metaflac $*
index 2e21fb6..7bc919e 100755 (executable)
@@ -59,6 +59,7 @@ metaflac --help 1>/dev/null 2>/dev/null || die "ERROR can't find metaflac execut
 run_flac ()
 {
        if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then
+               echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=100 flac $*" >>test_metaflac.valgrind.log
                valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 flac $* 4>>test_metaflac.valgrind.log
        else
                flac $*
@@ -68,6 +69,7 @@ run_flac ()
 run_metaflac ()
 {
        if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then
+               echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=100 metaflac $*" >>test_metaflac.valgrind.log
                valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 metaflac $* 4>>test_metaflac.valgrind.log
        else
                metaflac $*
@@ -80,6 +82,7 @@ run_metaflac_silent ()
                run_metaflac $*
        else
                if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then
+                       echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=100 metaflac $*" >>test_metaflac.valgrind.log
                        valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 metaflac $* 2>/dev/null 4>>test_metaflac.valgrind.log
                else
                        metaflac $* 2>/dev/null