diff options
Diffstat (limited to 'test/invalid_filename.exp')
-rwxr-xr-x | test/invalid_filename.exp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/invalid_filename.exp b/test/invalid_filename.exp index 93beff8a1..e496e4aaf 100755 --- a/test/invalid_filename.exp +++ b/test/invalid_filename.exp | |||
@@ -23,7 +23,7 @@ set timeout 10 | |||
23 | spawn $env(SHELL) | 23 | spawn $env(SHELL) |
24 | match_max 100000 | 24 | match_max 100000 |
25 | 25 | ||
26 | send -- "firejail --debug --noprofile --blacklist=\"bla&&bla\"\r" | 26 | send -- "firejail --debug-check-filename --noprofile --blacklist=\"bla&&bla\"\r" |
27 | expect { | 27 | expect { |
28 | timeout {puts "TESTING ERROR 1.1\n";exit} | 28 | timeout {puts "TESTING ERROR 1.1\n";exit} |
29 | "Checking filename bla&&bla" | 29 | "Checking filename bla&&bla" |
@@ -38,7 +38,7 @@ expect { | |||
38 | } | 38 | } |
39 | after 100 | 39 | after 100 |
40 | 40 | ||
41 | send -- "firejail --debug --noprofile --cgroup=\"bla&&bla\"\r" | 41 | send -- "firejail --debug-check-filename --noprofile --cgroup=\"bla&&bla\"\r" |
42 | expect { | 42 | expect { |
43 | timeout {puts "TESTING ERROR 2.1\n";exit} | 43 | timeout {puts "TESTING ERROR 2.1\n";exit} |
44 | "Checking filename bla&&bla" | 44 | "Checking filename bla&&bla" |
@@ -53,7 +53,7 @@ expect { | |||
53 | } | 53 | } |
54 | after 100 | 54 | after 100 |
55 | 55 | ||
56 | send -- "firejail --debug --noprofile --chroot=\"bla&&bla\"\r" | 56 | send -- "firejail --debug-check-filename --noprofile --chroot=\"bla&&bla\"\r" |
57 | expect { | 57 | expect { |
58 | timeout {puts "TESTING ERROR 3.1\n";exit} | 58 | timeout {puts "TESTING ERROR 3.1\n";exit} |
59 | "Checking filename bla&&bla" | 59 | "Checking filename bla&&bla" |
@@ -68,7 +68,7 @@ expect { | |||
68 | } | 68 | } |
69 | after 100 | 69 | after 100 |
70 | 70 | ||
71 | send -- "firejail --debug --noprofile --netfilter=\"bla&&bla\"\r" | 71 | send -- "firejail --debug-check-filename --noprofile --netfilter=\"bla&&bla\"\r" |
72 | expect { | 72 | expect { |
73 | timeout {puts "TESTING ERROR 4.1\n";exit} | 73 | timeout {puts "TESTING ERROR 4.1\n";exit} |
74 | "Checking filename bla&&bla" | 74 | "Checking filename bla&&bla" |
@@ -83,7 +83,7 @@ expect { | |||
83 | } | 83 | } |
84 | after 100 | 84 | after 100 |
85 | 85 | ||
86 | send -- "firejail --debug --noprofile --output=\"bla&&bla\"\r" | 86 | send -- "firejail --debug-check-filename --noprofile --output=\"bla&&bla\"\r" |
87 | expect { | 87 | expect { |
88 | timeout {puts "TESTING ERROR 5.2\n";exit} | 88 | timeout {puts "TESTING ERROR 5.2\n";exit} |
89 | "Error:" | 89 | "Error:" |
@@ -94,7 +94,7 @@ expect { | |||
94 | } | 94 | } |
95 | after 100 | 95 | after 100 |
96 | 96 | ||
97 | send -- "firejail --debug --noprofile --private=\"bla&&bla\"\r" | 97 | send -- "firejail --debug-check-filename --noprofile --private=\"bla&&bla\"\r" |
98 | expect { | 98 | expect { |
99 | timeout {puts "TESTING ERROR 6.1\n";exit} | 99 | timeout {puts "TESTING ERROR 6.1\n";exit} |
100 | "Checking filename bla&&bla" | 100 | "Checking filename bla&&bla" |
@@ -109,7 +109,7 @@ expect { | |||
109 | } | 109 | } |
110 | after 100 | 110 | after 100 |
111 | 111 | ||
112 | send -- "firejail --debug --noprofile --private-bin=\"bla&&bla\"\r" | 112 | send -- "firejail --debug-check-filename --noprofile --private-bin=\"bla&&bla\"\r" |
113 | expect { | 113 | expect { |
114 | timeout {puts "TESTING ERROR 7.1\n";exit} | 114 | timeout {puts "TESTING ERROR 7.1\n";exit} |
115 | "Checking filename bla&&bla" | 115 | "Checking filename bla&&bla" |
@@ -124,7 +124,7 @@ expect { | |||
124 | } | 124 | } |
125 | after 100 | 125 | after 100 |
126 | 126 | ||
127 | send -- "firejail --debug --noprofile --private-home=\"bla&&bla\"\r" | 127 | send -- "firejail --debug-check-filename --noprofile --private-home=\"bla&&bla\"\r" |
128 | expect { | 128 | expect { |
129 | timeout {puts "TESTING ERROR 8.1\n";exit} | 129 | timeout {puts "TESTING ERROR 8.1\n";exit} |
130 | "Checking filename bla&&bla" | 130 | "Checking filename bla&&bla" |
@@ -140,7 +140,7 @@ expect { | |||
140 | after 100 | 140 | after 100 |
141 | 141 | ||
142 | 142 | ||
143 | send -- "firejail --debug --noprofile --private-etc=\"bla&&bla\"\r" | 143 | send -- "firejail --debug-check-filename --noprofile --private-etc=\"bla&&bla\"\r" |
144 | expect { | 144 | expect { |
145 | timeout {puts "TESTING ERROR 9.1\n";exit} | 145 | timeout {puts "TESTING ERROR 9.1\n";exit} |
146 | "Checking filename bla&&bla" | 146 | "Checking filename bla&&bla" |
@@ -155,7 +155,7 @@ expect { | |||
155 | } | 155 | } |
156 | after 100 | 156 | after 100 |
157 | 157 | ||
158 | send -- "firejail --debug --profile=\"bla&&bla\"\r" | 158 | send -- "firejail --debug-check-filename --profile=\"bla&&bla\"\r" |
159 | expect { | 159 | expect { |
160 | timeout {puts "TESTING ERROR 10.1\n";exit} | 160 | timeout {puts "TESTING ERROR 10.1\n";exit} |
161 | "Checking filename bla&&bla" | 161 | "Checking filename bla&&bla" |
@@ -170,7 +170,7 @@ expect { | |||
170 | } | 170 | } |
171 | after 100 | 171 | after 100 |
172 | 172 | ||
173 | send -- "firejail --debug --read-only=\"bla&&bla\"\r" | 173 | send -- "firejail --debug-check-filename --read-only=\"bla&&bla\"\r" |
174 | expect { | 174 | expect { |
175 | timeout {puts "TESTING ERROR 11.1\n";exit} | 175 | timeout {puts "TESTING ERROR 11.1\n";exit} |
176 | "Checking filename bla&&bla" | 176 | "Checking filename bla&&bla" |
@@ -185,7 +185,7 @@ expect { | |||
185 | } | 185 | } |
186 | after 100 | 186 | after 100 |
187 | 187 | ||
188 | send -- "firejail --debug --shell=\"bla&&bla\"\r" | 188 | send -- "firejail --debug-check-filename --shell=\"bla&&bla\"\r" |
189 | expect { | 189 | expect { |
190 | timeout {puts "TESTING ERROR 12.1\n";exit} | 190 | timeout {puts "TESTING ERROR 12.1\n";exit} |
191 | "Checking filename bla&&bla" | 191 | "Checking filename bla&&bla" |
@@ -200,7 +200,7 @@ expect { | |||
200 | } | 200 | } |
201 | after 100 | 201 | after 100 |
202 | 202 | ||
203 | send -- "firejail --debug --tmpfs=\"bla&&bla\"\r" | 203 | send -- "firejail --debug-check-filename --tmpfs=\"bla&&bla\"\r" |
204 | expect { | 204 | expect { |
205 | timeout {puts "TESTING ERROR 13.1\n";exit} | 205 | timeout {puts "TESTING ERROR 13.1\n";exit} |
206 | "Checking filename bla&&bla" | 206 | "Checking filename bla&&bla" |
@@ -215,7 +215,7 @@ expect { | |||
215 | } | 215 | } |
216 | after 100 | 216 | after 100 |
217 | 217 | ||
218 | send -- "firejail --debug --whitelist=\"bla&&bla\"\r" | 218 | send -- "firejail --debug-check-filename --whitelist=\"bla&&bla\"\r" |
219 | expect { | 219 | expect { |
220 | timeout {puts "TESTING ERROR 14.1\n";exit} | 220 | timeout {puts "TESTING ERROR 14.1\n";exit} |
221 | "Checking filename bla&&bla" | 221 | "Checking filename bla&&bla" |