Merge branch 'tizen' into nether
[platform/core/test/security-tests.git] / src / security-tests.sh
index b86c61e..6490ac6 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 #####################################################################
-# Copyright (c) 2012-2017 Samsung Electronics Co., Ltd All Rights Reserved
+# Copyright (c) 2012-2018 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,9 +42,14 @@ case $1 in
     ;;
 "ckm")
     echo "========================================================================="
-    echo "KEY MANAGER TESTS"
+    echo "KEY MANAGER UNPRIVILEGED TESTS"
     echo
-    ckm-tests "${@:2}"
+    ARGS="${@:2}"
+    su - owner -c "ckm-tests $ARGS"
+    echo "========================================================================="
+    echo "KEY MANAGER PRIVILEGED TESTS"
+    echo
+    ckm-tests-on-onlycap.sh $ARGS
     ;;
 "yaca")
     echo "========================================================================="