aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/utils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/utils.sh')
-rwxr-xr-xtest/utils/utils.sh102
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
6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8
9echo "TESTING: version (test/utils/version.exp)"
10./version.exp
11
12echo "TESTING: help (test/utils/help.exp)"
13./help.exp
14
15which man
16if [ "$?" -eq 0 ];
17then
18 echo "TESTING: man (test/utils/man.exp)"
19 ./man.exp
20else
21 echo "TESTING SKIP: man not found"
22fi
23
24echo "TESTING: list (test/utils/list.exp)"
25./list.exp
26
27echo "TESTING: tree (test/utils/tree.exp)"
28./tree.exp
29
30if [ $(grep -c ^processor /proc/cpuinfo) -gt 1 ];
31then
32 echo "TESTING: cpu.print (test/utils/cpu-print.exp)"
33 ./cpu-print.exp
34else
35 echo "TESTING SKIP: cpu.print, not enough CPUs"
36fi
37
38echo "TESTING: fs.print (test/utils/fs-print.exp)"
39./fs-print.exp
40
41echo "TESTING: dns.print (test/utils/dns-print.exp)"
42./dns-print.exp
43
44echo "TESTING: caps.print (test/utils/caps-print.exp)"
45./caps-print.exp
46
47echo "TESTING: seccomp.print (test/utils/seccomp-print.exp)"
48./seccomp-print.exp
49
50echo "TESTING: protocol.print (test/utils/protocol-print.exp)"
51./protocol-print.exp
52
53echo "TESTING: shutdown (test/utils/shutdown.exp)"
54./shutdown.exp
55
56echo "TESTING: shutdown2 (test/utils/shutdown2.exp)"
57./shutdown2.exp
58
59echo "TESTING: shutdown3 (test/utils/shutdown3.exp)"
60./shutdown3.exp
61
62echo "TESTING: shutdown4 (test/utils/shutdown4.exp)"
63./shutdown4.exp
64
65echo "TESTING: join (test/utils/join.exp)"
66./join.exp
67
68echo "TESTING: join2 (test/utils/join2.exp)"
69./join2.exp
70
71echo "TESTING: join3 (test/utils/join3.exp)"
72./join3.exp
73
74echo "TESTING: join3 (test/utils/join4.exp)"
75./join4.exp
76
77echo "TESTING: join profile (test/utils/join-profile.exp)"
78./join-profile.exp
79
80echo "TESTING: trace (test/utils/trace.exp)"
81rm -f index.html*
82./trace.exp
83rm -f index.html*
84
85echo "TESTING: top (test/utils/top.exp)"
86./top.exp
87
88echo "TESTING: file transfer (test/utils/ls.exp)"
89./ls.exp
90
91echo "TESTING: firemon seccomp (test/utils/firemon-seccomp.exp)"
92./firemon-seccomp.exp
93
94echo "TESTING: firemon caps (test/utils/firemon-caps.exp)"
95./firemon-caps.exp
96
97echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)"
98./firemon-cpu.exp
99
100echo "TESTING: firemon cgroup (test/utils/firemon-cgroup.exp)"
101./firemon-cgroup.exp
102