diff options
Diffstat (limited to 'test/overlay/fs-tmpfs.exp')
-rwxr-xr-x | test/overlay/fs-tmpfs.exp | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/test/overlay/fs-tmpfs.exp b/test/overlay/fs-tmpfs.exp deleted file mode 100755 index 8c8ebcb16..000000000 --- a/test/overlay/fs-tmpfs.exp +++ /dev/null | |||
@@ -1,70 +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-clean\r" | ||
11 | after 100 | ||
12 | send -- "file ~/.firejail\r" | ||
13 | expect { | ||
14 | timeout {puts "TESTING ERROR 0\n";exit} | ||
15 | "cannot open" | ||
16 | } | ||
17 | after 100 | ||
18 | |||
19 | send -- "firejail --overlay-tmpfs\r" | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 1\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 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "found\n"} | ||
25 | } | ||
26 | sleep 1 | ||
27 | send -- "stty -echo\r" | ||
28 | after 100 | ||
29 | |||
30 | send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r" | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 2\n";exit} | ||
33 | "done" | ||
34 | } | ||
35 | after 100 | ||
36 | |||
37 | send -- "stty -echo\r" | ||
38 | after 100 | ||
39 | send -- "cat ~/_firejail_test_file; echo done\r" | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 3\n";exit} | ||
42 | "xyzxyzxyz" | ||
43 | } | ||
44 | expect { | ||
45 | timeout {puts "TESTING ERROR 4\n";exit} | ||
46 | "done" | ||
47 | } | ||
48 | after 100 | ||
49 | |||
50 | send -- "exit\r" | ||
51 | sleep 1 | ||
52 | |||
53 | send -- "stty -echo\r" | ||
54 | after 100 | ||
55 | send -- "cat ~/_firejail_test_file; echo done\r" | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 5\n";exit} | ||
58 | "xyzxyzxyz" {puts "TESTING ERROR 6\n";exit} | ||
59 | "done" | ||
60 | } | ||
61 | after 100 | ||
62 | |||
63 | send -- "file ~/.firejail\r" | ||
64 | expect { | ||
65 | timeout {puts "TESTING ERROR 7\n";exit} | ||
66 | "cannot open" | ||
67 | } | ||
68 | after 100 | ||
69 | |||
70 | puts "\nall done\n" | ||