aboutsummaryrefslogtreecommitdiffstats
path: root/test/overlay/overlay.sh
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-11 07:47:46 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-11 07:47:46 -0500
commita8b23c83998c7964f8898c39784ac186a0216c3f (patch)
treeeeccf98bab92b5b3818f0b30af688d736a92a599 /test/overlay/overlay.sh
parenttesting (diff)
downloadfirejail-a8b23c83998c7964f8898c39784ac186a0216c3f.tar.gz
firejail-a8b23c83998c7964f8898c39784ac186a0216c3f.tar.zst
firejail-a8b23c83998c7964f8898c39784ac186a0216c3f.zip
testing
Diffstat (limited to 'test/overlay/overlay.sh')
-rwxr-xr-xtest/overlay/overlay.sh57
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
6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8
9echo "TESTING: overlay fs (test/overlay/fs.exp)"
10rm -fr ~/_firejail_test_*
11./fs.exp
12rm -fr ~/_firejail_test_*
13
14which firefox
15if [ "$?" -eq 0 ];
16then
17 echo "TESTING: overlay firefox"
18 ./firefox.exp
19else
20 echo "TESTING SKIP: firefox not found"
21fi
22
23which firefox
24if [ "$?" -eq 0 ];
25then
26 echo "TESTING: overlay firefox x11 xorg"
27 ./firefox.exp
28else
29 echo "TESTING SKIP: firefox not found"
30fi
31
32
33# check xpra/xephyr
34which xpra
35if [ "$?" -eq 0 ];
36then
37 echo "xpra found"
38else
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
48fi
49
50which firefox
51if [ "$?" -eq 0 ];
52then
53 echo "TESTING: overlay firefox x11"
54 ./firefox.exp
55else
56 echo "TESTING SKIP: firefox not found"
57fi