aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/environment.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/environment/environment.sh')
-rwxr-xr-xtest/environment/environment.sh47
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
6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8
9echo "TESTING: environment variables (test/environment/env.exp)"
10./env.exp
11
12echo "TESTING: shell none(test/environment/shell-none.exp)"
13./shell-none.exp
14
15which dash
16if [ "$?" -eq 0 ];
17then
18 echo "TESTING: dash (test/environment/dash.exp)"
19 ./dash.exp
20else
21 echo "TESTING: dash not found"
22fi
23
24which csh
25if [ "$?" -eq 0 ];
26then
27 echo "TESTING: csh (test/environment/csh.exp)"
28 ./csh.exp
29else
30 echo "TESTING: csh not found"
31fi
32
33which zsh
34if [ "$?" -eq 0 ];
35then
36 echo "TESTING: zsh (test/environment/zsh.exp)"
37 ./csh.exp
38else
39 echo "TESTING: zsh not found"
40fi
41
42echo "TESTING: rlimit (test/environment/rlimit.exp)"
43./rlimit.exp
44
45echo "TESTING: rlimit profile (test/environment/rlimit-profile.exp)"
46./rlimit-profile.exp
47