diff options
Diffstat (limited to 'test/utils/utils.sh')
-rwxr-xr-x | test/utils/utils.sh | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/test/utils/utils.sh b/test/utils/utils.sh new file mode 100755 index 000000000..04702597f --- /dev/null +++ b/test/utils/utils.sh | |||
@@ -0,0 +1,114 @@ | |||
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: audit (test/utils/audit.exp)" | ||
10 | ./audit.exp | ||
11 | |||
12 | echo "TESTING: version (test/utils/version.exp)" | ||
13 | ./version.exp | ||
14 | |||
15 | echo "TESTING: help (test/utils/help.exp)" | ||
16 | ./help.exp | ||
17 | |||
18 | which man | ||
19 | if [ "$?" -eq 0 ]; | ||
20 | then | ||
21 | echo "TESTING: man (test/utils/man.exp)" | ||
22 | ./man.exp | ||
23 | else | ||
24 | echo "TESTING SKIP: man not found" | ||
25 | fi | ||
26 | |||
27 | echo "TESTING: list (test/utils/list.exp)" | ||
28 | ./list.exp | ||
29 | |||
30 | echo "TESTING: tree (test/utils/tree.exp)" | ||
31 | ./tree.exp | ||
32 | |||
33 | if [ $(grep -c ^processor /proc/cpuinfo) -gt 1 ]; | ||
34 | then | ||
35 | echo "TESTING: cpu.print (test/utils/cpu-print.exp)" | ||
36 | ./cpu-print.exp | ||
37 | else | ||
38 | echo "TESTING SKIP: cpu.print, not enough CPUs" | ||
39 | fi | ||
40 | |||
41 | echo "TESTING: fs.print (test/utils/fs-print.exp)" | ||
42 | ./fs-print.exp | ||
43 | |||
44 | echo "TESTING: dns.print (test/utils/dns-print.exp)" | ||
45 | ./dns-print.exp | ||
46 | |||
47 | echo "TESTING: caps.print (test/utils/caps-print.exp)" | ||
48 | ./caps-print.exp | ||
49 | |||
50 | echo "TESTING: seccomp.print (test/utils/seccomp-print.exp)" | ||
51 | ./seccomp-print.exp | ||
52 | |||
53 | echo "TESTING: protocol.print (test/utils/protocol-print.exp)" | ||
54 | ./protocol-print.exp | ||
55 | |||
56 | echo "TESTING: shutdown (test/utils/shutdown.exp)" | ||
57 | ./shutdown.exp | ||
58 | |||
59 | echo "TESTING: shutdown2 (test/utils/shutdown2.exp)" | ||
60 | ./shutdown2.exp | ||
61 | |||
62 | echo "TESTING: shutdown3 (test/utils/shutdown3.exp)" | ||
63 | ./shutdown3.exp | ||
64 | |||
65 | echo "TESTING: shutdown4 (test/utils/shutdown4.exp)" | ||
66 | ./shutdown4.exp | ||
67 | |||
68 | echo "TESTING: join (test/utils/join.exp)" | ||
69 | ./join.exp | ||
70 | |||
71 | echo "TESTING: join2 (test/utils/join2.exp)" | ||
72 | ./join2.exp | ||
73 | |||
74 | echo "TESTING: join3 (test/utils/join3.exp)" | ||
75 | ./join3.exp | ||
76 | |||
77 | echo "TESTING: join3 (test/utils/join4.exp)" | ||
78 | ./join4.exp | ||
79 | |||
80 | echo "TESTING: join profile (test/utils/join-profile.exp)" | ||
81 | ./join-profile.exp | ||
82 | |||
83 | echo "TESTING: trace (test/utils/trace.exp)" | ||
84 | rm -f index.html* | ||
85 | ./trace.exp | ||
86 | rm -f index.html* | ||
87 | |||
88 | echo "TESTING: top (test/utils/top.exp)" | ||
89 | ./top.exp | ||
90 | |||
91 | echo "TESTING: file transfer (test/utils/ls.exp)" | ||
92 | ./ls.exp | ||
93 | |||
94 | echo "TESTING: firemon seccomp (test/utils/firemon-seccomp.exp)" | ||
95 | ./firemon-seccomp.exp | ||
96 | |||
97 | echo "TESTING: firemon caps (test/utils/firemon-caps.exp)" | ||
98 | ./firemon-caps.exp | ||
99 | |||
100 | echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)" | ||
101 | ./firemon-cpu.exp | ||
102 | |||
103 | echo "TESTING: firemon cgroup (test/utils/firemon-cgroup.exp)" | ||
104 | ./firemon-cgroup.exp | ||
105 | |||
106 | echo "TESTING: firemon version (test/utils/firemon-version.exp)" | ||
107 | ./firemon-version.exp | ||
108 | |||
109 | echo "TESTING: firemon interface (test/utils/firemon-interface.exp)" | ||
110 | ./firemon-interface.exp | ||
111 | |||
112 | echo "TESTING: firemon name (test/utils/firemon-name.exp)" | ||
113 | ./firemon-name.exp | ||
114 | |||