Remove unused test for PID reusage
[platform/core/test/security-tests.git] / tests / security-tests.sh
1 #!/bin/sh
2
3 #####################################################################
4 # Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
5 #
6 #    Licensed under the Apache License, Version 2.0 (the "License");
7 #    you may not use this file except in compliance with the License.
8 #    You may obtain a copy of the License at
9 #
10 #        http://www.apache.org/licenses/LICENSE-2.0
11 #
12 #    Unless required by applicable law or agreed to in writing, software
13 #    distributed under the License is distributed on an "AS IS" BASIS,
14 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 #    See the License for the specific language governing permissions and
16 #    limitations under the License.
17 #####################################################################
18
19 #testing internet access and date on the target
20
21 echo "### Starting tests ######################################################"
22
23 case $1 in
24
25 "smack")
26     echo "========================================================================="
27     echo $1
28     echo
29     libsmack-test $2 $3
30     ;;
31
32 "libprivilege-control")
33     echo "========================================================================="
34     echo $1
35     echo
36     libprivilege-control-test $2 $3
37     ;;
38 "ss-clientsmack")
39     echo "========================================================================="
40     echo "SECURITY SERVER TEST CLIENT SMACK"
41     echo
42     security-server-tests-client-smack $2 $3
43     ;;
44 "ss-label")
45     echo "========================================================================="
46     echo "SECURITY SERVER TEST LABEL"
47     echo
48     security-server-tests-label $2 $3
49     ;;
50 "ss-server")
51     echo "========================================================================="
52     echo "SECURITY SERVER TEST SERVER"
53     echo
54     security-server-tests-server $2 $3
55     ;;
56 "ss-api-speed")
57     echo "========================================================================="
58     echo "SECURITY SERVER MEASURER SERVER"
59     echo
60     security-server-tests-api-speed  $2 $3
61     ;;
62 "ss-password")
63     echo "========================================================================="
64     echo "SECURITY SERVER TEST PASSWORD"
65     echo
66     security-server-tests-password $2 $3
67     ;;
68 "ss-dbus")
69     echo "========================================================================="
70     echo "SECURITY SERVER TEST DBUS"
71     echo
72     security-server-tests-dbus $2 $3
73     ;;
74
75 *)
76     echo "Correct using:"
77     echo "    security_test.sh <module> <args_for_module>"
78     echo
79     echo "modules: smack, libprivilege-control, ss-clientsmack"
80     echo "         ss-label, ss-server, ss-api-speed, ss-password"
81     ;;
82
83 esac
84
85 echo "### Tests done ##########################################################"