X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=blobdiff_plain;f=coverage%2Fscripts%2Frun-test.sh;h=ee0fb00a5e3c514cbc70b8aadc958c20cea0db80;hp=be08365450f0ea10d0d4535d4aba3588b887500e;hb=6b702024c9e6d06c74fccc20122f24a72560d54b;hpb=51b8ff088991a18d744b6b86430afc8d83c4fcd8 diff --git a/coverage/scripts/run-test.sh b/coverage/scripts/run-test.sh index be083654..ee0fb00a 100755 --- a/coverage/scripts/run-test.sh +++ b/coverage/scripts/run-test.sh @@ -7,6 +7,20 @@ cd $R/bin lcov -c -i -d $R/bin -o $R/lcov-out.info +vg() { + if [[ -z "$NOVALGRIND" ]]; then + valgrind "$@" + else + while :; do + case "$1" in + --*) shift;; + *) break;; + esac + done + "$@" + fi +} + mk() { echo echo "*******************************************************************" @@ -78,7 +92,7 @@ mk $R/bin/test-wrap-json # true life test ########################################################## mk \ -valgrind \ +vg \ --log-file=$R/valgrind.out \ --trace-children=no \ --track-fds=yes \