diff options
Diffstat (limited to 'test/overlay/fs.exp')
-rwxr-xr-x | test/overlay/fs.exp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/test/overlay/fs.exp b/test/overlay/fs.exp deleted file mode 100755 index e078e604c..000000000 --- a/test/overlay/fs.exp +++ /dev/null | |||
@@ -1,62 +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\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 | |||
19 | send -- "stty -echo\r" | ||
20 | after 100 | ||
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 -- "stty -echo\r" | ||
29 | after 100 | ||
30 | send -- "cat ~/_firejail_test_file; echo done\r" | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 4\n";exit} | ||
33 | "xyzxyzxyz" | ||
34 | } | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 4.1\n";exit} | ||
37 | "done" | ||
38 | } | ||
39 | after 100 | ||
40 | |||
41 | send -- "exit\r" | ||
42 | sleep 2 | ||
43 | |||
44 | send -- "stty -echo\r" | ||
45 | after 100 | ||
46 | send -- "cat ~/_firejail_test_file; echo done\r" | ||
47 | expect { | ||
48 | timeout {puts "TESTING ERROR 5\n";exit} | ||
49 | "xyzxyzxyz" {puts "TESTING ERROR 5.1\n";exit} | ||
50 | "done" | ||
51 | } | ||
52 | after 100 | ||
53 | |||
54 | # check /sys directory | ||
55 | send -- "ls /sys\r" | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 6\n";exit} | ||
58 | "block" | ||
59 | } | ||
60 | after 100 | ||
61 | |||
62 | puts "\nall done\n" | ||