Feature: write summary with negative cases accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.103615 accepted/tizen/6.0/unified/hotfix/20201103.045504 accepted/tizen/unified/20200317.063528 submit/tizen/20200316.103911 submit/tizen_6.0/20201029.205504 submit/tizen_6.0_hotfix/20201102.192904 submit/tizen_6.0_hotfix/20201103.115104 tizen_6.0.m2_release
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 16 Mar 2020 10:35:41 +0000 (19:35 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 16 Mar 2020 10:38:01 +0000 (19:38 +0900)
If -cn is active, the summary file needs to include
the number of negative test cases as well.

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

index b2ca601..6e8d420 100644 (file)
@@ -1,3 +1,9 @@
+ssat (1.1.0) stable; urgency=medium
+
+  * A lot of updates have been done (new features)
+
+ -- MyungJoo Ham <myungjoo.ham@samsung.com>  Mon, 16 Mar 2020 19:39:00 +0900
+
 ssat (1.0.0) stable; urgency=medium
 
   * Initial debian dist files added
index 82d3201..3cb440a 100644 (file)
@@ -1,6 +1,6 @@
 Name:          ssat
 Summary:       Shell Script Automated Tester
-Version:       1.0.0
+Version:       1.1.0
 Release:       1rc1
 Group:         Development/Tools
 Packager:      MyungJoo Ham <myungjoo.ham@samsung.com>
diff --git a/ssat.sh b/ssat.sh
index a305cb2..c60e09c 100755 (executable)
--- a/ssat.sh
+++ b/ssat.sh
@@ -263,16 +263,19 @@ printf "==================================================\n\n"
 printf "$groupLog"
 printf "==================================================\n"
 
-if [ "${SUMMARYFILENAME}" != "" ]
-then
-       echo "passed=${TNtcpass}, failed=${TNtcfail}, ignored=${TNtcignore}" > "${SUMMARYFILENAME}"
-fi
 ADDITIONALSTRING=""
+ADDITIONALSUMMARY=""
 if (( ${COUNTNEGATIVE} == 1 ))
 then
        total=$((TNtcpass+TNtcfail+TNtcignore))
        pos=$((total-TNtcneg))
        ADDITIONALSTRING="${ADDITIONALSTRING} | Positive: ${pos} / Negative: ${TNtcneg}"
+       ADDITIONALSUMMARY="${ADDITIONALSUMMARY}, negative=${TNtcneg}"
+fi
+
+if [ "${SUMMARYFILENAME}" != "" ]
+then
+       echo "passed=${TNtcpass}, failed=${TNtcfail}, ignored=${TNtcignore}${ADDITIONALSUMMARY}" > "${SUMMARYFILENAME}"
 fi
 if (( ${TNgroupfail} == 0 ))
 then