aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs_overlay.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
commit1379851360349d6617ad32944a25ee5e2bb74fc2 (patch)
treef69b48e90708bfa3c2723d5a27ed3e024c827b43 /test/fs_overlay.exp
parentdelete files (diff)
downloadfirejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.gz
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.zst
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.zip
Baseline firejail 0.9.28
Diffstat (limited to 'test/fs_overlay.exp')
-rwxr-xr-xtest/fs_overlay.exp64
1 files changed, 64 insertions, 0 deletions
diff --git a/test/fs_overlay.exp b/test/fs_overlay.exp
new file mode 100755
index 000000000..166970a5c
--- /dev/null
+++ b/test/fs_overlay.exp
@@ -0,0 +1,64 @@
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 --overlay\r"
20expect {
21 timeout {puts "TESTING ERROR 2\n";exit}
22 "Child process initialized"
23}
24sleep 1
25
26send -- "echo xyzxyzxyz > /tmp/firejail-overlay-test;pwd\r"
27expect {
28 timeout {puts "TESTING ERROR 3\n";exit}
29 "home"
30}
31sleep 1
32
33send -- "cat /tmp/firejail-overlay-test;pwd\r"
34expect {
35 timeout {puts "TESTING ERROR 4\n";exit}
36 "xyzxyzxyz"
37}
38expect {
39 timeout {puts "TESTING ERROR 4.1\n";exit}
40 "home"
41}
42sleep 1
43
44send -- "exit\r"
45sleep 2
46
47send -- "cat /tmp/firejail-overlay-test;pwd\r"
48expect {
49 timeout {puts "TESTING ERROR 5\n";exit}
50 "xyzxyzxyz" {puts "TESTING ERROR 5.1\n";exit}
51 "home"
52}
53
54sleep 1
55send -- "rm -f /tmp/firejail-overlay-test;pwd\r"
56expect {
57 timeout {puts "TESTING ERROR 0\n";exit}
58 "home"
59}
60
61
62sleep 1
63puts "\n"
64