diff options
Diffstat (limited to 'test/overlay/fs-named.exp')
-rwxr-xr-x | test/overlay/fs-named.exp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/test/overlay/fs-named.exp b/test/overlay/fs-named.exp deleted file mode 100755 index 0356720bc..000000000 --- a/test/overlay/fs-named.exp +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --overlay-named=firejail-test\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 2\n";exit} | ||
10 | "not available for kernels older than 3.18" {puts "\nTESTING: overlayfs not available\n"; exit} | ||
11 | "Error: --overlay option is not available on Grsecurity systems" {puts "\nTESTING: overlayfs not available\n"; exit} | ||
12 | "Child process initialized" {puts "found\n"} | ||
13 | } | ||
14 | sleep 1 | ||
15 | send -- "stty -echo\r" | ||
16 | after 100 | ||
17 | |||
18 | send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 3\n";exit} | ||
21 | "done" | ||
22 | } | ||
23 | after 100 | ||
24 | |||
25 | send -- "cat ~/_firejail_test_file; echo done\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 4\n";exit} | ||
28 | "xyzxyzxyz" | ||
29 | } | ||
30 | expect { | ||
31 | timeout {puts "TESTING ERROR 4.1\n";exit} | ||
32 | "done" | ||
33 | } | ||
34 | after 100 | ||
35 | |||
36 | send -- "exit\r" | ||
37 | sleep 2 | ||
38 | |||
39 | send -- "cat ~/_firejail_test_file; echo done\r" | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 5\n";exit} | ||
42 | "xyzxyzxyz" {puts "TESTING ERROR 5.1\n";exit} | ||
43 | "done" | ||
44 | } | ||
45 | after 100 | ||
46 | |||
47 | send -- "firejail --overlay-named=firejail-test\r" | ||
48 | expect { | ||
49 | timeout {puts "TESTING ERROR 2\n";exit} | ||
50 | "not available for kernels older than 3.18" {puts "\nTESTING: overlayfs not available\n"; exit} | ||
51 | "Error: --overlay option is not available on Grsecurity systems" {puts "\nTESTING: overlayfs not available\n"; exit} | ||
52 | "Child process initialized" {puts "found\n"} | ||
53 | } | ||
54 | sleep 1 | ||
55 | |||
56 | send -- "stty -echo\r" | ||
57 | after 100 | ||
58 | send -- "cat ~/_firejail_test_file; echo done\r" | ||
59 | expect { | ||
60 | timeout {puts "TESTING ERROR 4\n";exit} | ||
61 | "xyzxyzxyz" | ||
62 | } | ||
63 | expect { | ||
64 | timeout {puts "TESTING ERROR 4.1\n";exit} | ||
65 | "done" | ||
66 | } | ||
67 | after 100 | ||
68 | |||
69 | puts "\nall done\n" | ||