aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-11-26 07:18:01 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-11-26 07:18:01 -0500
commite83af0b1114499ccca03f6680a9e9b2c0e1e9493 (patch)
treebd8662356644d9d7e5ef7e472301e311dc01afa5 /test
parent--debug enhancements (diff)
downloadfirejail-e83af0b1114499ccca03f6680a9e9b2c0e1e9493.tar.gz
firejail-e83af0b1114499ccca03f6680a9e9b2c0e1e9493.tar.zst
firejail-e83af0b1114499ccca03f6680a9e9b2c0e1e9493.zip
fixes
Diffstat (limited to 'test')
-rwxr-xr-xtest/ignore.exp2
-rwxr-xr-xtest/invalid_filename.exp28
2 files changed, 15 insertions, 15 deletions
diff --git a/test/ignore.exp b/test/ignore.exp
index 8f8076fb3..c5ea25684 100755
--- a/test/ignore.exp
+++ b/test/ignore.exp
@@ -7,7 +7,7 @@ match_max 100000
7send -- "firejail --profile=ignore.profile --ignore=seccomp \r" 7send -- "firejail --profile=ignore.profile --ignore=seccomp \r"
8expect { 8expect {
9 timeout {puts "TESTING ERROR 0\n";exit} 9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Error: please use --profile after --include" 10 "Error: please use --profile after --ignore"
11} 11}
12 12
13send -- "firejail --debug --ignore=seccomp\r" 13send -- "firejail --debug --ignore=seccomp\r"
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
23spawn $env(SHELL) 23spawn $env(SHELL)
24match_max 100000 24match_max 100000
25 25
26send -- "firejail --debug --noprofile --blacklist=\"bla&&bla\"\r" 26send -- "firejail --debug-check-filename --noprofile --blacklist=\"bla&&bla\"\r"
27expect { 27expect {
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}
39after 100 39after 100
40 40
41send -- "firejail --debug --noprofile --cgroup=\"bla&&bla\"\r" 41send -- "firejail --debug-check-filename --noprofile --cgroup=\"bla&&bla\"\r"
42expect { 42expect {
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}
54after 100 54after 100
55 55
56send -- "firejail --debug --noprofile --chroot=\"bla&&bla\"\r" 56send -- "firejail --debug-check-filename --noprofile --chroot=\"bla&&bla\"\r"
57expect { 57expect {
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}
69after 100 69after 100
70 70
71send -- "firejail --debug --noprofile --netfilter=\"bla&&bla\"\r" 71send -- "firejail --debug-check-filename --noprofile --netfilter=\"bla&&bla\"\r"
72expect { 72expect {
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}
84after 100 84after 100
85 85
86send -- "firejail --debug --noprofile --output=\"bla&&bla\"\r" 86send -- "firejail --debug-check-filename --noprofile --output=\"bla&&bla\"\r"
87expect { 87expect {
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}
95after 100 95after 100
96 96
97send -- "firejail --debug --noprofile --private=\"bla&&bla\"\r" 97send -- "firejail --debug-check-filename --noprofile --private=\"bla&&bla\"\r"
98expect { 98expect {
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}
110after 100 110after 100
111 111
112send -- "firejail --debug --noprofile --private-bin=\"bla&&bla\"\r" 112send -- "firejail --debug-check-filename --noprofile --private-bin=\"bla&&bla\"\r"
113expect { 113expect {
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}
125after 100 125after 100
126 126
127send -- "firejail --debug --noprofile --private-home=\"bla&&bla\"\r" 127send -- "firejail --debug-check-filename --noprofile --private-home=\"bla&&bla\"\r"
128expect { 128expect {
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 {
140after 100 140after 100
141 141
142 142
143send -- "firejail --debug --noprofile --private-etc=\"bla&&bla\"\r" 143send -- "firejail --debug-check-filename --noprofile --private-etc=\"bla&&bla\"\r"
144expect { 144expect {
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}
156after 100 156after 100
157 157
158send -- "firejail --debug --profile=\"bla&&bla\"\r" 158send -- "firejail --debug-check-filename --profile=\"bla&&bla\"\r"
159expect { 159expect {
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}
171after 100 171after 100
172 172
173send -- "firejail --debug --read-only=\"bla&&bla\"\r" 173send -- "firejail --debug-check-filename --read-only=\"bla&&bla\"\r"
174expect { 174expect {
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}
186after 100 186after 100
187 187
188send -- "firejail --debug --shell=\"bla&&bla\"\r" 188send -- "firejail --debug-check-filename --shell=\"bla&&bla\"\r"
189expect { 189expect {
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}
201after 100 201after 100
202 202
203send -- "firejail --debug --tmpfs=\"bla&&bla\"\r" 203send -- "firejail --debug-check-filename --tmpfs=\"bla&&bla\"\r"
204expect { 204expect {
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}
216after 100 216after 100
217 217
218send -- "firejail --debug --whitelist=\"bla&&bla\"\r" 218send -- "firejail --debug-check-filename --whitelist=\"bla&&bla\"\r"
219expect { 219expect {
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"