aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/whitelist.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-29 10:04:43 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-29 10:04:43 -0500
commitd3b6581db7fcd0fb0897ada9910140f0e43f4ed1 (patch)
tree1c4409a84665834736370f89dcf915a12f173ef5 /test/fs/whitelist.exp
parentMerge pull request #945 from Fred-Barclay/cryptocat (diff)
downloadfirejail-d3b6581db7fcd0fb0897ada9910140f0e43f4ed1.tar.gz
firejail-d3b6581db7fcd0fb0897ada9910140f0e43f4ed1.tar.zst
firejail-d3b6581db7fcd0fb0897ada9910140f0e43f4ed1.zip
testing and cleanup
Diffstat (limited to 'test/fs/whitelist.exp')
-rwxr-xr-xtest/fs/whitelist.exp26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/fs/whitelist.exp b/test/fs/whitelist.exp
index 9a9a0f353..9b631b884 100755
--- a/test/fs/whitelist.exp
+++ b/test/fs/whitelist.exp
@@ -36,7 +36,7 @@ after 200
36send -- "ln -s ~/fjtest-dir ~/fjtest-dir-lnk\r" 36send -- "ln -s ~/fjtest-dir ~/fjtest-dir-lnk\r"
37after 200 37after 200
38 38
39send -- "firejail --whitelist=~/fjtest-file --whitelist=~/fjtest-dir\r" 39send -- "firejail --whitelist=~/fjtest-file --whitelist=~/fjtest-dir --debug\r"
40expect { 40expect {
41 timeout {puts "TESTING ERROR 0\n";exit} 41 timeout {puts "TESTING ERROR 0\n";exit}
42 "Child process initialized" 42 "Child process initialized"
@@ -49,19 +49,19 @@ expect {
49 "2" 49 "2"
50} 50}
51 51
52send -- "cat fjtest-file\r" 52send -- "cat ~/fjtest-file\r"
53expect { 53expect {
54 timeout {puts "TESTING ERROR 2\n";exit} 54 timeout {puts "TESTING ERROR 2\n";exit}
55 "123" 55 "123"
56} 56}
57 57
58send -- "cat fjtest-dir/fjtest-file\r" 58send -- "cat ~/fjtest-dir/fjtest-file\r"
59expect { 59expect {
60 timeout {puts "TESTING ERROR 3\n";exit} 60 timeout {puts "TESTING ERROR 3\n";exit}
61 "123" 61 "123"
62} 62}
63 63
64send -- "cat fjtest-dir/fjtest-dir/fjtest-file\r" 64send -- "cat ~/fjtest-dir/fjtest-dir/fjtest-file\r"
65expect { 65expect {
66 timeout {puts "TESTING ERROR 4\n";exit} 66 timeout {puts "TESTING ERROR 4\n";exit}
67 "123" 67 "123"
@@ -86,7 +86,7 @@ expect {
86 "1" 86 "1"
87} 87}
88 88
89send -- "cat fjtest-dir/fjtest-dir/fjtest-file\r" 89send -- "cat ~/fjtest-dir/fjtest-dir/fjtest-file\r"
90expect { 90expect {
91 timeout {puts "TESTING ERROR 12\n";exit} 91 timeout {puts "TESTING ERROR 12\n";exit}
92 "123" 92 "123"
@@ -111,37 +111,37 @@ expect {
111 "4" 111 "4"
112} 112}
113 113
114send -- "cat fjtest-file\r" 114send -- "cat ~/fjtest-file\r"
115expect { 115expect {
116 timeout {puts "TESTING ERROR 22\n";exit} 116 timeout {puts "TESTING ERROR 22\n";exit}
117 "123" 117 "123"
118} 118}
119 119
120send -- "cat fjtest-dir/fjtest-file\r" 120send -- "cat ~/fjtest-dir/fjtest-file\r"
121expect { 121expect {
122 timeout {puts "TESTING ERROR 23\n";exit} 122 timeout {puts "TESTING ERROR 23\n";exit}
123 "123" 123 "123"
124} 124}
125 125
126send -- "cat fjtest-dir/fjtest-dir/fjtest-file\r" 126send -- "cat ~/fjtest-dir/fjtest-dir/fjtest-file\r"
127expect { 127expect {
128 timeout {puts "TESTING ERROR 24\n";exit} 128 timeout {puts "TESTING ERROR 24\n";exit}
129 "123" 129 "123"
130} 130}
131 131
132send -- "cat fjtest-file-lnk\r" 132send -- "cat ~/fjtest-file-lnk\r"
133expect { 133expect {
134 timeout {puts "TESTING ERROR 25\n";exit} 134 timeout {puts "TESTING ERROR 25\n";exit}
135 "123" 135 "123"
136} 136}
137 137
138send -- "cat fjtest-dir-lnk/fjtest-file\r" 138send -- "cat ~/fjtest-dir-lnk/fjtest-file\r"
139expect { 139expect {
140 timeout {puts "TESTING ERROR 26\n";exit} 140 timeout {puts "TESTING ERROR 26\n";exit}
141 "123" 141 "123"
142} 142}
143 143
144send -- "cat fjtest-dir-lnk/fjtest-dir/fjtest-file\r" 144send -- "cat ~/fjtest-dir-lnk/fjtest-dir/fjtest-file\r"
145expect { 145expect {
146 timeout {puts "TESTING ERROR 27\n";exit} 146 timeout {puts "TESTING ERROR 27\n";exit}
147 "123" 147 "123"
@@ -193,13 +193,13 @@ expect {
193 "2" 193 "2"
194} 194}
195 195
196send -- "cat fjtest-file-lnk\r" 196send -- "cat ~/fjtest-file-lnk\r"
197expect { 197expect {
198 timeout {puts "TESTING ERROR 42\n";exit} 198 timeout {puts "TESTING ERROR 42\n";exit}
199 "123" 199 "123"
200} 200}
201 201
202send -- "cat fjtest-dir-lnk/fjtest-file\r" 202send -- "cat ~/fjtest-dir-lnk/fjtest-file\r"
203expect { 203expect {
204 timeout {puts "TESTING ERROR 43\n";exit} 204 timeout {puts "TESTING ERROR 43\n";exit}
205 "123" 205 "123"