Release of 1.4.0 / Added Version info accepted/tizen_8.0_unified accepted/tizen_unified main tizen tizen_8.0 accepted/tizen/8.0/unified/20231005.094609 accepted/tizen/unified/20230818.054616 tizen_8.0_m2_release
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 17 Aug 2023 08:26:46 +0000 (17:26 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 17 Aug 2023 08:28:23 +0000 (17:28 +0900)
Release of version 1.4.0
Use -v / --version to show the version info.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
debian/changelog
packaging/ssat.spec
ssat.sh

index 89c0eec..7de1bab 100644 (file)
@@ -1,3 +1,9 @@
+ssat (1.4.0) stable; urgency=medium
+
+  * Vangrind support added.
+
+ -- MyungJoo Ham <myungjoo.ham@samsung.com>  Thu, 17 Aug 2023 17:21:00 +0900
+
 ssat (1.2.0) stable; urgency=medium
 
   * Progress and error logs revised.
index 61e4c39..aa2860a 100644 (file)
@@ -1,6 +1,6 @@
 Name:          ssat
 Summary:       Shell Script Automated Tester
-Version:       1.3.0
+Version:       1.4.0
 Release:       0
 Group:         Development/Tools
 Packager:      MyungJoo Ham <myungjoo.ham@samsung.com>
diff --git a/ssat.sh b/ssat.sh
index 5916f55..cf76c28 100755 (executable)
--- a/ssat.sh
+++ b/ssat.sh
@@ -31,7 +31,7 @@
 ## - OUTPUT           :  Summary of test results to stdout. Exit code of 0 if success, non-zero if not success.
 ## @section CREATEINFO   Code information
 ## - Initial date     :  2018/06/22
-## - Version          :  1.2.0
+## - Version          :  1.4.0
 
 TARGET=$(pwd)
 TARGET_ASSIGNED=0
@@ -39,6 +39,7 @@ BASEPATH=`dirname "$0"`
 BASENAME=`basename "$0"`
 TESTCASE="runTest.sh"
 SUMMARYFILENAME=""
+VERSION="1.4.0"
 
 #
 SILENT=1
@@ -96,7 +97,7 @@ do
        key="$1"
        case $key in
        -h|--help)
-               printf "usage: ${BASENAME} [--help] [<path>] [--testcase <filename>] [--nocolor] [--showstdout] [--createtemplate] [--countnegative <postfix>] [--enable-valgrind] [--valgrind-suppression <filepath>]\n\n"
+               printf "usage: ${BASENAME} [--help] [<path>] [--testcase <filename>] [--nocolor] [--showstdout] [--createtemplate] [--countnegative <postfix>] [--enable-valgrind] [--valgrind-suppression <filepath>] [--version]\n\n"
                printf "These are common ${Red}ssat${NC} commands used:\n\n"
                printf "Test all test-groups in the current ($(pwd)) directory, recursively\n"
                printf "    (no options specified)\n"
@@ -148,6 +149,9 @@ do
                printf "\n"
                printf "Write result summary as a file\n"
                printf "    --summary <filename>\n"
+               printf "\n"
+               printf "Show the version\n"
+               printf "    --version or -v\n"
                printf "\n\n"
                exit 0
        ;;
@@ -204,6 +208,11 @@ do
        shift
        shift
        ;;
+       --version|-v)
+       printf "${VERSION}\n"
+       exit 0
+       shift
+       ;;
        *) # Unknown, which is probably target (the path to root-dir of test groups).
        # If this is the second occurrence, ignore it.
        # Assume that the previous string is path and the later string is an invalid argument.