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