diff options
Diffstat (limited to 'test/overlay/overlay.sh')
-rwxr-xr-x | test/overlay/overlay.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/test/overlay/overlay.sh b/test/overlay/overlay.sh new file mode 100755 index 000000000..971adddfe --- /dev/null +++ b/test/overlay/overlay.sh | |||
@@ -0,0 +1,57 @@ | |||
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: overlay fs (test/overlay/fs.exp)" | ||
10 | rm -fr ~/_firejail_test_* | ||
11 | ./fs.exp | ||
12 | rm -fr ~/_firejail_test_* | ||
13 | |||
14 | which firefox | ||
15 | if [ "$?" -eq 0 ]; | ||
16 | then | ||
17 | echo "TESTING: overlay firefox" | ||
18 | ./firefox.exp | ||
19 | else | ||
20 | echo "TESTING SKIP: firefox not found" | ||
21 | fi | ||
22 | |||
23 | which firefox | ||
24 | if [ "$?" -eq 0 ]; | ||
25 | then | ||
26 | echo "TESTING: overlay firefox x11 xorg" | ||
27 | ./firefox.exp | ||
28 | else | ||
29 | echo "TESTING SKIP: firefox not found" | ||
30 | fi | ||
31 | |||
32 | |||
33 | # check xpra/xephyr | ||
34 | which xpra | ||
35 | if [ "$?" -eq 0 ]; | ||
36 | then | ||
37 | echo "xpra found" | ||
38 | else | ||
39 | echo "xpra not found" | ||
40 | which Xephyr | ||
41 | if [ "$?" -eq 0 ]; | ||
42 | then | ||
43 | echo "Xephyr found" | ||
44 | else | ||
45 | echo "TESTING SKIP: xpra and/or Xephyr not found" | ||
46 | exit | ||
47 | fi | ||
48 | fi | ||
49 | |||
50 | which firefox | ||
51 | if [ "$?" -eq 0 ]; | ||
52 | then | ||
53 | echo "TESTING: overlay firefox x11" | ||
54 | ./firefox.exp | ||
55 | else | ||
56 | echo "TESTING SKIP: firefox not found" | ||
57 | fi | ||