aboutsummaryrefslogtreecommitdiffstats
path: root/test/overlay/fs-named.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/overlay/fs-named.exp')
-rwxr-xr-xtest/overlay/fs-named.exp69
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
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --overlay-named=firejail-test\r"
8expect {
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}
14sleep 1
15send -- "stty -echo\r"
16after 100
17
18send -- "echo xyzxyzxyz > ~/_firejail_test_file; echo done\r"
19expect {
20 timeout {puts "TESTING ERROR 3\n";exit}
21 "done"
22}
23after 100
24
25send -- "cat ~/_firejail_test_file; echo done\r"
26expect {
27 timeout {puts "TESTING ERROR 4\n";exit}
28 "xyzxyzxyz"
29}
30expect {
31 timeout {puts "TESTING ERROR 4.1\n";exit}
32 "done"
33}
34after 100
35
36send -- "exit\r"
37sleep 2
38
39send -- "cat ~/_firejail_test_file; echo done\r"
40expect {
41 timeout {puts "TESTING ERROR 5\n";exit}
42 "xyzxyzxyz" {puts "TESTING ERROR 5.1\n";exit}
43 "done"
44}
45after 100
46
47send -- "firejail --overlay-named=firejail-test\r"
48expect {
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}
54sleep 1
55
56send -- "stty -echo\r"
57after 100
58send -- "cat ~/_firejail_test_file; echo done\r"
59expect {
60 timeout {puts "TESTING ERROR 4\n";exit}
61 "xyzxyzxyz"
62}
63expect {
64 timeout {puts "TESTING ERROR 4.1\n";exit}
65 "done"
66}
67after 100
68
69puts "\nall done\n"