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