diff options
Diffstat (limited to 'test/utils/utils.sh')
-rwxr-xr-x | test/utils/utils.sh | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/test/utils/utils.sh b/test/utils/utils.sh new file mode 100755 index 000000000..bd91110f7 --- /dev/null +++ b/test/utils/utils.sh | |||
@@ -0,0 +1,102 @@ | |||
1 | #!/bin/bash | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2016 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | export MALLOC_CHECK_=3 | ||
7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) | ||
8 | |||
9 | echo "TESTING: version (test/utils/version.exp)" | ||
10 | ./version.exp | ||
11 | |||
12 | echo "TESTING: help (test/utils/help.exp)" | ||
13 | ./help.exp | ||
14 | |||
15 | which man | ||
16 | if [ "$?" -eq 0 ]; | ||
17 | then | ||
18 | echo "TESTING: man (test/utils/man.exp)" | ||
19 | ./man.exp | ||
20 | else | ||
21 | echo "TESTING SKIP: man not found" | ||
22 | fi | ||
23 | |||
24 | echo "TESTING: list (test/utils/list.exp)" | ||
25 | ./list.exp | ||
26 | |||
27 | echo "TESTING: tree (test/utils/tree.exp)" | ||
28 | ./tree.exp | ||
29 | |||
30 | if [ $(grep -c ^processor /proc/cpuinfo) -gt 1 ]; | ||
31 | then | ||
32 | echo "TESTING: cpu.print (test/utils/cpu-print.exp)" | ||
33 | ./cpu-print.exp | ||
34 | else | ||
35 | echo "TESTING SKIP: cpu.print, not enough CPUs" | ||
36 | fi | ||
37 | |||
38 | echo "TESTING: fs.print (test/utils/fs-print.exp)" | ||
39 | ./fs-print.exp | ||
40 | |||
41 | echo "TESTING: dns.print (test/utils/dns-print.exp)" | ||
42 | ./dns-print.exp | ||
43 | |||
44 | echo "TESTING: caps.print (test/utils/caps-print.exp)" | ||
45 | ./caps-print.exp | ||
46 | |||
47 | echo "TESTING: seccomp.print (test/utils/seccomp-print.exp)" | ||
48 | ./seccomp-print.exp | ||
49 | |||
50 | echo "TESTING: protocol.print (test/utils/protocol-print.exp)" | ||
51 | ./protocol-print.exp | ||
52 | |||
53 | echo "TESTING: shutdown (test/utils/shutdown.exp)" | ||
54 | ./shutdown.exp | ||
55 | |||
56 | echo "TESTING: shutdown2 (test/utils/shutdown2.exp)" | ||
57 | ./shutdown2.exp | ||
58 | |||
59 | echo "TESTING: shutdown3 (test/utils/shutdown3.exp)" | ||
60 | ./shutdown3.exp | ||
61 | |||
62 | echo "TESTING: shutdown4 (test/utils/shutdown4.exp)" | ||
63 | ./shutdown4.exp | ||
64 | |||
65 | echo "TESTING: join (test/utils/join.exp)" | ||
66 | ./join.exp | ||
67 | |||
68 | echo "TESTING: join2 (test/utils/join2.exp)" | ||
69 | ./join2.exp | ||
70 | |||
71 | echo "TESTING: join3 (test/utils/join3.exp)" | ||
72 | ./join3.exp | ||
73 | |||
74 | echo "TESTING: join3 (test/utils/join4.exp)" | ||
75 | ./join4.exp | ||
76 | |||
77 | echo "TESTING: join profile (test/utils/join-profile.exp)" | ||
78 | ./join-profile.exp | ||
79 | |||
80 | echo "TESTING: trace (test/utils/trace.exp)" | ||
81 | rm -f index.html* | ||
82 | ./trace.exp | ||
83 | rm -f index.html* | ||
84 | |||
85 | echo "TESTING: top (test/utils/top.exp)" | ||
86 | ./top.exp | ||
87 | |||
88 | echo "TESTING: file transfer (test/utils/ls.exp)" | ||
89 | ./ls.exp | ||
90 | |||
91 | echo "TESTING: firemon seccomp (test/utils/firemon-seccomp.exp)" | ||
92 | ./firemon-seccomp.exp | ||
93 | |||
94 | echo "TESTING: firemon caps (test/utils/firemon-caps.exp)" | ||
95 | ./firemon-caps.exp | ||
96 | |||
97 | echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)" | ||
98 | ./firemon-cpu.exp | ||
99 | |||
100 | echo "TESTING: firemon cgroup (test/utils/firemon-cgroup.exp)" | ||
101 | ./firemon-cgroup.exp | ||
102 | |||