Merge branch 'nether' into tizen
[platform/core/test/security-tests.git] / src / security-tests.sh
index 9115beb..1cf60b6 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 #####################################################################
-# Copyright (c) 2012-2014 Samsung Electronics Co., Ltd All Rights Reserved
+# Copyright (c) 2012 - 2019 Samsung Electronics Co., Ltd All Rights Reserved
 #
 #    Licensed under the Apache License, Version 2.0 (the "License");
 #    you may not use this file except in compliance with the License.
@@ -42,15 +42,31 @@ case $1 in
     ;;
 "ckm")
     echo "========================================================================="
-    echo "KEY MANAGER TESTS"
+    echo "KEY MANAGER UNPRIVILEGED TESTS"
     echo
-    ckm-tests "${@:2}"
+    su - owner -c "ckm-tests ${@:2}"
+    echo "========================================================================="
+    echo "KEY MANAGER PRIVILEGED TESTS"
+    echo
+    ckm-privileged-tests "${@:2}"
+    ;;
+"yaca")
+    echo "========================================================================="
+    echo "YACA TESTS"
+    echo
+    yaca-test "${@:2}"
+    ;;
+"nether")
+    echo "========================================================================="
+    echo "NETHER TESTS"
+    echo
+    nether-tests "${@:2}"
     ;;
 *)
     echo "Correct using:"
     echo "    security_test.sh <module> <args_for_module>"
     echo
-    echo "modules: smack, security-manager, cynara, ckm"
+    echo "modules: smack, security-manager, cynara, ckm, yaca, nether"
     ;;
 
 esac