diff options
Diffstat (limited to 'test/features/3.11.exp')
-rwxr-xr-x | test/features/3.11.exp | 171 |
1 files changed, 171 insertions, 0 deletions
diff --git a/test/features/3.11.exp b/test/features/3.11.exp new file mode 100755 index 000000000..3a5e38257 --- /dev/null +++ b/test/features/3.11.exp | |||
@@ -0,0 +1,171 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # | ||
3 | # mkdir | ||
4 | # | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | set overlay [lindex $argv 0] | ||
10 | set chroot [lindex $argv 1] | ||
11 | |||
12 | # | ||
13 | # N | ||
14 | # | ||
15 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
16 | sleep 1 | ||
17 | |||
18 | send -- "firejail --profile=3.11.profile\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 0\n";exit} | ||
21 | "Child process initialized" | ||
22 | } | ||
23 | sleep 1 | ||
24 | |||
25 | send -- "ls -l ~ | grep firejail-xy76_u9\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 1\n";exit} | ||
28 | "drwx------" | ||
29 | } | ||
30 | expect { | ||
31 | timeout {puts "TESTING ERROR 2\n";exit} | ||
32 | "netblue netblue" { puts "Debian\n"} | ||
33 | "netblue users" { puts "Arch\n"} | ||
34 | } | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 3\n";exit} | ||
37 | "firejail-xy76_u9" | ||
38 | } | ||
39 | after 100 | ||
40 | |||
41 | send -- "ls -l ~/firejail-xy76_u9\r" | ||
42 | expect { | ||
43 | timeout {puts "TESTING ERROR 4\n";exit} | ||
44 | "drwx------" | ||
45 | } | ||
46 | expect { | ||
47 | timeout {puts "TESTING ERROR 5\n";exit} | ||
48 | "netblue netblue" { puts "Debian\n"} | ||
49 | "netblue users" { puts "Arch\n"} | ||
50 | } | ||
51 | expect { | ||
52 | timeout {puts "TESTING ERROR 6\n";exit} | ||
53 | "testdir" | ||
54 | } | ||
55 | after 100 | ||
56 | |||
57 | send -- "exit\r" | ||
58 | sleep 1 | ||
59 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
60 | sleep 1 | ||
61 | |||
62 | # | ||
63 | # O | ||
64 | # | ||
65 | if { $overlay == "overlay" } { | ||
66 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
67 | sleep 1 | ||
68 | |||
69 | send -- "firejail --profile=3.11.profile\r" | ||
70 | expect { | ||
71 | timeout {puts "TESTING ERROR 10\n";exit} | ||
72 | "Child process initialized" | ||
73 | } | ||
74 | sleep 1 | ||
75 | |||
76 | send -- "ls -l ~ | grep firejail-xy76_u9\r" | ||
77 | expect { | ||
78 | timeout {puts "TESTING ERROR 11\n";exit} | ||
79 | "drwx------" | ||
80 | } | ||
81 | expect { | ||
82 | timeout {puts "TESTING ERROR 12\n";exit} | ||
83 | "netblue netblue" { puts "Debian\n"} | ||
84 | "netblue users" { puts "Arch\n"} | ||
85 | } | ||
86 | expect { | ||
87 | timeout {puts "TESTING ERROR 13\n";exit} | ||
88 | "firejail-xy76_u9" | ||
89 | } | ||
90 | after 100 | ||
91 | |||
92 | send -- "ls -l ~/firejail-xy76_u9\r" | ||
93 | expect { | ||
94 | timeout {puts "TESTING ERROR 14\n";exit} | ||
95 | "drwx------" | ||
96 | } | ||
97 | expect { | ||
98 | timeout {puts "TESTING ERROR 15\n";exit} | ||
99 | "netblue netblue" { puts "Debian\n"} | ||
100 | "netblue users" { puts "Arch\n"} | ||
101 | } | ||
102 | expect { | ||
103 | timeout {puts "TESTING ERROR 16\n";exit} | ||
104 | "testdir" | ||
105 | } | ||
106 | after 100 | ||
107 | |||
108 | send -- "exit\r" | ||
109 | sleep 1 | ||
110 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
111 | sleep 1 | ||
112 | |||
113 | |||
114 | } | ||
115 | |||
116 | # | ||
117 | # C | ||
118 | # | ||
119 | if { $chroot == "chroot" } { | ||
120 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
121 | sleep 1 | ||
122 | |||
123 | send -- "firejail --profile=3.11.profile\r" | ||
124 | expect { | ||
125 | timeout {puts "TESTING ERROR 20\n";exit} | ||
126 | "Child process initialized" | ||
127 | } | ||
128 | sleep 1 | ||
129 | |||
130 | send -- "ls -l ~ | grep firejail-xy76_u9\r" | ||
131 | expect { | ||
132 | timeout {puts "TESTING ERROR 21\n";exit} | ||
133 | "drwx------" | ||
134 | } | ||
135 | expect { | ||
136 | timeout {puts "TESTING ERROR 22\n";exit} | ||
137 | "netblue netblue" { puts "Debian\n"} | ||
138 | "netblue users" { puts "Arch\n"} | ||
139 | } | ||
140 | expect { | ||
141 | timeout {puts "TESTING ERROR 23\n";exit} | ||
142 | "firejail-xy76_u9" | ||
143 | } | ||
144 | after 100 | ||
145 | |||
146 | send -- "ls -l ~/firejail-xy76_u9\r" | ||
147 | expect { | ||
148 | timeout {puts "TESTING ERROR 24\n";exit} | ||
149 | "drwx------" | ||
150 | } | ||
151 | expect { | ||
152 | timeout {puts "TESTING ERROR 25\n";exit} | ||
153 | "netblue netblue" { puts "Debian\n"} | ||
154 | "netblue users" { puts "Arch\n"} | ||
155 | } | ||
156 | expect { | ||
157 | timeout {puts "TESTING ERROR 26\n";exit} | ||
158 | "testdir" | ||
159 | } | ||
160 | after 100 | ||
161 | |||
162 | send -- "rm -fr ~/firejail-xy76_u9\r" | ||
163 | sleep 1 | ||
164 | |||
165 | send -- "exit\r" | ||
166 | |||
167 | } | ||
168 | |||
169 | |||
170 | puts "\nall done\n" | ||
171 | |||