Adding ignored option to security-tests-all.sh script.
authorMarcin Niesluchowski <m.niesluchow@samsung.com>
Fri, 28 Jun 2013 13:17:11 +0000 (15:17 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 13:58:55 +0000 (14:58 +0100)
RUNNER_IGNORED_MSG("Ignore text"); should be added in the beginning of
test body. For turning off ignored option security-tests-all.sh should run with
additional --noignored flag. For single scripts ignored option is turned off
by default. To turn it on flag --runignored should be added.
For example:
* security-tests-all.sh
* security-tests-all.sh --noignored
* libprivilege-control-tests --output=text --runignored

[Issue#]        SSDWSSP-343
[Bug/Feature]   Ignore option should be added because some tests
                could be made for unimplemented or not yet fixed
                functionalities.
[Cause]         N/A
[Solution]      N/A
[Verification]  Running tests. With ignored option function reaching
                RUNNER_IGNORED_MSG should be classified as Ignored
                in single test result and increment Ignored count in result
                for each test group.

Change-Id: I883500d80c2933de24e51c7b94810ba543392b1d

tests/security-tests-all.sh

index 12cecf4..42a9815 100644 (file)
@@ -1,10 +1,19 @@
 #!/bin/sh
 echo "[Trigerring all tests...]"
-security-tests.sh smack --output=text
-security-tests.sh libprivilege-control --output=text
-security-tests.sh ss-clientsmack --output=text
-security-tests.sh ss-label --output=text
-security-tests.sh ss-pid --output=text
-security-tests.sh ss-server --output=text
-security-tests.sh ss-password --output=text
+
+ign="--runignored"
+if [ $# -gt 0 ]; then
+  if [ "$1" = "--noignored" ]; then
+    ign=""
+  fi
+fi
+
+security-tests.sh smack --output=text $ign
+security-tests.sh libprivilege-control --output=text $ign
+security-tests.sh ss-clientsmack --output=text $ign
+security-tests.sh ss-label --output=text $ign
+security-tests.sh ss-pid --output=text $ign
+security-tests.sh ss-server --output=text $ign
+security-tests.sh ss-password --output=text $ign
+
 echo "[Done]"