aboutsummaryrefslogtreecommitdiffstats
path: root/test/overlay/overlay.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/overlay/overlay.sh')
-rwxr-xr-xtest/overlay/overlay.sh24
1 files changed, 9 insertions, 15 deletions
diff --git a/test/overlay/overlay.sh b/test/overlay/overlay.sh
index 490b180e1..a0519d1ad 100755
--- a/test/overlay/overlay.sh
+++ b/test/overlay/overlay.sh
@@ -22,8 +22,7 @@ rm -fr ~/_firejail_test_*
22./fs-tmpfs.exp 22./fs-tmpfs.exp
23rm -fr ~/_firejail_test_* 23rm -fr ~/_firejail_test_*
24 24
25which firefox 2>/dev/null 25if command -v firefox
26if [ "$?" -eq 0 ];
27then 26then
28 echo "TESTING: overlay firefox" 27 echo "TESTING: overlay firefox"
29 ./firefox.exp 28 ./firefox.exp
@@ -31,8 +30,7 @@ else
31 echo "TESTING SKIP: firefox not found" 30 echo "TESTING SKIP: firefox not found"
32fi 31fi
33 32
34which firefox 2>/dev/null 33if command -v firefox
35if [ "$?" -eq 0 ];
36then 34then
37 echo "TESTING: overlay firefox x11 xorg" 35 echo "TESTING: overlay firefox x11 xorg"
38 ./firefox.exp 36 ./firefox.exp
@@ -40,26 +38,22 @@ else
40 echo "TESTING SKIP: firefox not found" 38 echo "TESTING SKIP: firefox not found"
41fi 39fi
42 40
43
44# check xpra/xephyr 41# check xpra/xephyr
45which xpra 2>/dev/null 42if command -v xpra
46if [ "$?" -eq 0 ];
47then 43then
48 echo "xpra found" 44 echo "xpra found"
49else 45else
50 echo "xpra not found" 46 echo "xpra not found"
51 which Xephyr 2>/dev/null 47 if command -v Xephyr
52 if [ "$?" -eq 0 ];
53 then 48 then
54 echo "Xephyr found" 49 echo "Xephyr found"
55 else 50 else
56 echo "TESTING SKIP: xpra and/or Xephyr not found" 51 echo "TESTING SKIP: xpra and/or Xephyr not found"
57 exit 52 exit
58 fi 53 fi
59fi 54fi
60 55
61which firefox 2>/dev/null 56if command -v firefox
62if [ "$?" -eq 0 ];
63then 57then
64 echo "TESTING: overlay firefox x11" 58 echo "TESTING: overlay firefox x11"
65 ./firefox-x11.exp 59 ./firefox-x11.exp