X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=coverage%2Fscripts%2Frun-test.sh;h=fc45515d67fa0bbe89ebb4c61e5c8af1f802f582;hb=50deefa0f08b88b99748abd57560222744d2f8db;hp=5d1b9a963cfc55b7edba03bccda79037ef586fa8;hpb=4772c5626204f6ab0e26b938f49a6719fb10f88d;p=src%2Fapp-framework-binder.git diff --git a/coverage/scripts/run-test.sh b/coverage/scripts/run-test.sh index 5d1b9a96..fc45515d 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 \ @@ -122,6 +136,7 @@ $R/bin/afb-daemon-cov \ --traceevt all \ --traceglob none \ --monitoring \ + --set hello/key:a-kind-of-text \ --call demat/ping:true \ --call hello/ping:false \ --ws-server unix:$R/apis/ws/hello \ @@ -132,7 +147,7 @@ $R/bin/afb-daemon-cov \ # true life test ########################################################## mk \ -valgrind \ +vg \ --log-file=$R/valgrind.out \ --trace-children=no \ --track-fds=yes \