diff options
author | netblue30 <netblue30@yahoo.com> | 2016-11-11 07:47:46 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-11-11 07:47:46 -0500 |
commit | a8b23c83998c7964f8898c39784ac186a0216c3f (patch) | |
tree | eeccf98bab92b5b3818f0b30af688d736a92a599 /test/fs_overlay.exp | |
parent | testing (diff) | |
download | firejail-a8b23c83998c7964f8898c39784ac186a0216c3f.tar.gz firejail-a8b23c83998c7964f8898c39784ac186a0216c3f.tar.zst firejail-a8b23c83998c7964f8898c39784ac186a0216c3f.zip |
testing
Diffstat (limited to 'test/fs_overlay.exp')
-rwxr-xr-x | test/fs_overlay.exp | 66 |
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 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "rm -f /tmp/firejail-overlay-test;pwd\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "home" | ||
11 | } | ||
12 | |||
13 | send -- "ls > /tmp/firejail-overlay-test;pwd\r" | ||
14 | expect { | ||
15 | timeout {puts "TESTING ERROR 1\n";exit} | ||
16 | "home" | ||
17 | } | ||
18 | |||
19 | send -- "firejail --noprofile --overlay\r" | ||
20 | expect { | ||
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 | } | ||
26 | sleep 1 | ||
27 | |||
28 | send -- "echo xyzxyzxyz > /tmp/firejail-overlay-test;pwd\r" | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 3\n";exit} | ||
31 | "home" | ||
32 | } | ||
33 | sleep 1 | ||
34 | |||
35 | send -- "cat /tmp/firejail-overlay-test;pwd\r" | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 4\n";exit} | ||
38 | "xyzxyzxyz" | ||
39 | } | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 4.1\n";exit} | ||
42 | "home" | ||
43 | } | ||
44 | sleep 1 | ||
45 | |||
46 | send -- "exit\r" | ||
47 | sleep 2 | ||
48 | |||
49 | send -- "cat /tmp/firejail-overlay-test;pwd\r" | ||
50 | expect { | ||
51 | timeout {puts "TESTING ERROR 5\n";exit} | ||
52 | "xyzxyzxyz" {puts "TESTING ERROR 5.1\n";exit} | ||
53 | "home" | ||
54 | } | ||
55 | |||
56 | sleep 1 | ||
57 | send -- "rm -f /tmp/firejail-overlay-test;pwd\r" | ||
58 | expect { | ||
59 | timeout {puts "TESTING ERROR 0\n";exit} | ||
60 | "home" | ||
61 | } | ||
62 | |||
63 | |||
64 | sleep 1 | ||
65 | puts "all done \n" | ||
66 | |||