aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs_overlay.exp
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/fs_overlay.exp
parenttesting (diff)
downloadfirejail-a8b23c83998c7964f8898c39784ac186a0216c3f.tar.gz
firejail-a8b23c83998c7964f8898c39784ac186a0216c3f.tar.zst
firejail-a8b23c83998c7964f8898c39784ac186a0216c3f.zip
testing
Diffstat (limited to 'test/fs_overlay.exp')
-rwxr-xr-xtest/fs_overlay.exp66
1 files changed, 0 insertions, 66 deletions
diff --git a/test/fs_overlay.exp b/test/fs_overlay.exp
deleted file mode 100755
index b7eeba80f..000000000
--- a/test/fs_overlay.exp
+++ /dev/null
@@ -1,66 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "rm -f /tmp/firejail-overlay-test;pwd\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "home"
11}
12
13send -- "ls > /tmp/firejail-overlay-test;pwd\r"
14expect {
15 timeout {puts "TESTING ERROR 1\n";exit}
16 "home"
17}
18
19send -- "firejail --noprofile --overlay\r"
20expect {
21 timeout {puts "TESTING ERROR 2\n";exit}
22 "not available for kernels older than 3.18" {puts "\nTESTING: overlayfs not available\n"; exit}
23 "Error: --overlay option is not available on Grsecurity systems" {puts "\nTESTING: overlayfs not available\n"; exit}
24 "Child process initialized" {puts "found\n"}
25}
26sleep 1
27
28send -- "echo xyzxyzxyz > /tmp/firejail-overlay-test;pwd\r"
29expect {
30 timeout {puts "TESTING ERROR 3\n";exit}
31 "home"
32}
33sleep 1
34
35send -- "cat /tmp/firejail-overlay-test;pwd\r"
36expect {
37 timeout {puts "TESTING ERROR 4\n";exit}
38 "xyzxyzxyz"
39}
40expect {
41 timeout {puts "TESTING ERROR 4.1\n";exit}
42 "home"
43}
44sleep 1
45
46send -- "exit\r"
47sleep 2
48
49send -- "cat /tmp/firejail-overlay-test;pwd\r"
50expect {
51 timeout {puts "TESTING ERROR 5\n";exit}
52 "xyzxyzxyz" {puts "TESTING ERROR 5.1\n";exit}
53 "home"
54}
55
56sleep 1
57send -- "rm -f /tmp/firejail-overlay-test;pwd\r"
58expect {
59 timeout {puts "TESTING ERROR 0\n";exit}
60 "home"
61}
62
63
64sleep 1
65puts "all done \n"
66