Added Valgrind as an option
[platform/upstream/SSAT.git] / ssat.sh
diff --git a/ssat.sh b/ssat.sh
index 8c0d930..a1b8431 100755 (executable)
--- a/ssat.sh
+++ b/ssat.sh
@@ -41,6 +41,7 @@ TESTCASE="runTest.sh"
 #
 SILENT=1
 PROGRESS=0
+VALGRIND=0
 date=`date +"%b %d %Y"`
 
 ## @fn createTemplate()
@@ -118,6 +119,9 @@ do
                printf "Show progress during execution\n"
                printf "    --progress or -p\n"
                printf "\n"
+               printf "Enable valgrind to perform memcheck\n"
+               printf "    --enable-valgrind or -vg\n"
+               printf "\n"
                printf "Shows this message\n"
                printf "    --help or -h\n"
                printf "    $ ${BASENAME} --help \n"
@@ -145,6 +149,10 @@ do
        PROGRESS=1
        shift
        ;;
+       -vg|--enable-valgrind)
+       VALGRIND=1
+       shift
+       ;;
        *) # Unknown, which is probably target (the path to root-dir of test groups).
        TARGET="$1"
        shift