diff options
Diffstat (limited to 'test/environment/environment.sh')
-rwxr-xr-x | test/environment/environment.sh | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/environment/environment.sh b/test/environment/environment.sh new file mode 100755 index 000000000..3041fcc12 --- /dev/null +++ b/test/environment/environment.sh | |||
@@ -0,0 +1,47 @@ | |||
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: environment variables (test/environment/env.exp)" | ||
10 | ./env.exp | ||
11 | |||
12 | echo "TESTING: shell none(test/environment/shell-none.exp)" | ||
13 | ./shell-none.exp | ||
14 | |||
15 | which dash | ||
16 | if [ "$?" -eq 0 ]; | ||
17 | then | ||
18 | echo "TESTING: dash (test/environment/dash.exp)" | ||
19 | ./dash.exp | ||
20 | else | ||
21 | echo "TESTING: dash not found" | ||
22 | fi | ||
23 | |||
24 | which csh | ||
25 | if [ "$?" -eq 0 ]; | ||
26 | then | ||
27 | echo "TESTING: csh (test/environment/csh.exp)" | ||
28 | ./csh.exp | ||
29 | else | ||
30 | echo "TESTING: csh not found" | ||
31 | fi | ||
32 | |||
33 | which zsh | ||
34 | if [ "$?" -eq 0 ]; | ||
35 | then | ||
36 | echo "TESTING: zsh (test/environment/zsh.exp)" | ||
37 | ./csh.exp | ||
38 | else | ||
39 | echo "TESTING: zsh not found" | ||
40 | fi | ||
41 | |||
42 | echo "TESTING: rlimit (test/environment/rlimit.exp)" | ||
43 | ./rlimit.exp | ||
44 | |||
45 | echo "TESTING: rlimit profile (test/environment/rlimit-profile.exp)" | ||
46 | ./rlimit-profile.exp | ||
47 | |||