aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/environment.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/environment/environment.sh')
-rwxr-xr-xtest/environment/environment.sh87
1 files changed, 87 insertions, 0 deletions
diff --git a/test/environment/environment.sh b/test/environment/environment.sh
new file mode 100755
index 000000000..5c4d49331
--- /dev/null
+++ b/test/environment/environment.sh
@@ -0,0 +1,87 @@
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: DNS (test/environment/dns.exp)"
10./dns.exp
11
12echo "TESTING: doubledash (test/environment/doubledash.exp"
13mkdir -- -testdir
14touch -- -testdir/ttt
15cp -- /bin/bash -testdir/.
16./doubledash.exp
17rm -fr -- -testdir
18
19echo "TESTING: output (test/environment/output.exp)"
20./output.exp
21
22echo "TESTING: extract command (extract_command.exp)"
23./extract_command.exp
24
25echo "TESTING: environment variables (test/environment/env.exp)"
26./env.exp
27
28echo "TESTING: shell none(test/environment/shell-none.exp)"
29./shell-none.exp
30
31which dash
32if [ "$?" -eq 0 ];
33then
34 echo "TESTING: dash (test/environment/dash.exp)"
35 ./dash.exp
36else
37 echo "TESTING SKIP: dash not found"
38fi
39
40which csh
41if [ "$?" -eq 0 ];
42then
43 echo "TESTING: csh (test/environment/csh.exp)"
44 ./csh.exp
45else
46 echo "TESTING SKIP: csh not found"
47fi
48
49which zsh
50if [ "$?" -eq 0 ];
51then
52 echo "TESTING: zsh (test/environment/zsh.exp)"
53 ./zsh.exp
54else
55 echo "TESTING SKIP: zsh not found"
56fi
57
58echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)"
59./firejail-in-firejail.exp
60
61echo "TESTING: firejail in firejail - force new sandbox (test/environment/firejail-in-firejail2.exp)"
62./firejail-in-firejail2.exp
63
64which aplay
65if [ "$?" -eq 0 ];
66then
67 echo "TESTING: sound (test/environment/sound.exp)"
68 ./sound.exp
69else
70 echo "TESTING SKIP: aplay not found"
71fi
72
73echo "TESTING: nice (test/environment/nice.exp)"
74./nice.exp
75
76echo "TESTING: quiet (test/environment/quiet.exp)"
77./quiet.exp
78
79which strace
80if [ "$?" -eq 0 ];
81then
82 echo "TESTING: --allow-debuggers (test/environment/allow-debuggers.exp)"
83 ./allow-debuggers.exp
84else
85 echo "TESTING SKIP: strace not found"
86fi
87