diff options
author | 2016-03-23 09:29:27 -0400 | |
---|---|---|
committer | 2016-03-23 09:29:27 -0400 | |
commit | 3eb4b71a6d62c30899e9d58379c2a5c5fa171b10 (patch) | |
tree | fffda8de35f7cc7b68cbae76b4365f796100f2ac /test/features/1.8.exp | |
parent | hide firejail run time information (diff) | |
download | firejail-3eb4b71a6d62c30899e9d58379c2a5c5fa171b10.tar.gz firejail-3eb4b71a6d62c30899e9d58379c2a5c5fa171b10.tar.zst firejail-3eb4b71a6d62c30899e9d58379c2a5c5fa171b10.zip |
testing
Diffstat (limited to 'test/features/1.8.exp')
-rwxr-xr-x | test/features/1.8.exp | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/test/features/1.8.exp b/test/features/1.8.exp index d937f4f12..dd525df49 100755 --- a/test/features/1.8.exp +++ b/test/features/1.8.exp | |||
@@ -32,6 +32,36 @@ expect { | |||
32 | "Permission denied" | 32 | "Permission denied" |
33 | } | 33 | } |
34 | after 100 | 34 | after 100 |
35 | send -- "ls /run/firejail/bandwidth\r" | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 1.2\n";exit} | ||
38 | "Permission denied" | ||
39 | } | ||
40 | after 100 | ||
41 | #send -- "ls /run/firejail/mnt\r" | ||
42 | #expect { | ||
43 | # timeout {puts "TESTING ERROR 1.3\n";exit} | ||
44 | # "Permission denied" | ||
45 | #} | ||
46 | #after 100 | ||
47 | send -- "ls /run/firejail/name\r" | ||
48 | expect { | ||
49 | timeout {puts "TESTING ERROR 1.4\n";exit} | ||
50 | "Permission denied" | ||
51 | } | ||
52 | after 100 | ||
53 | send -- "ls /run/firejail/network\r" | ||
54 | expect { | ||
55 | timeout {puts "TESTING ERROR 1.5\n";exit} | ||
56 | "Permission denied" | ||
57 | } | ||
58 | after 100 | ||
59 | send -- "ls /run/firejail/x11\r" | ||
60 | expect { | ||
61 | timeout {puts "TESTING ERROR 1.6\n";exit} | ||
62 | "Permission denied" | ||
63 | } | ||
64 | after 100 | ||
35 | send -- "exit\r" | 65 | send -- "exit\r" |
36 | sleep 1 | 66 | sleep 1 |
37 | 67 | ||
@@ -58,6 +88,36 @@ if { $overlay == "overlay" } { | |||
58 | "Permission denied" | 88 | "Permission denied" |
59 | } | 89 | } |
60 | after 100 | 90 | after 100 |
91 | send -- "ls /run/firejail/bandwidth\r" | ||
92 | expect { | ||
93 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
94 | "Permission denied" | ||
95 | } | ||
96 | after 100 | ||
97 | #send -- "ls /run/firejail/mnt\r" | ||
98 | #expect { | ||
99 | # timeout {puts "TESTING ERROR 3.3\n";exit} | ||
100 | # "Permission denied" | ||
101 | #} | ||
102 | #after 100 | ||
103 | send -- "ls /run/firejail/name\r" | ||
104 | expect { | ||
105 | timeout {puts "TESTING ERROR 3.4\n";exit} | ||
106 | "Permission denied" | ||
107 | } | ||
108 | after 100 | ||
109 | send -- "ls /run/firejail/network\r" | ||
110 | expect { | ||
111 | timeout {puts "TESTING ERROR 3.5\n";exit} | ||
112 | "Permission denied" | ||
113 | } | ||
114 | after 100 | ||
115 | send -- "ls /run/firejail/x11\r" | ||
116 | expect { | ||
117 | timeout {puts "TESTING ERROR 3.6\n";exit} | ||
118 | "Permission denied" | ||
119 | } | ||
120 | after 100 | ||
61 | 121 | ||
62 | send -- "exit\r" | 122 | send -- "exit\r" |
63 | sleep 1 | 123 | sleep 1 |
@@ -85,6 +145,36 @@ if { $chroot == "chroot" } { | |||
85 | "Permission denied" | 145 | "Permission denied" |
86 | } | 146 | } |
87 | after 100 | 147 | after 100 |
148 | send -- "ls /run/firejail/bandwidth\r" | ||
149 | expect { | ||
150 | timeout {puts "TESTING ERROR 5.2\n";exit} | ||
151 | "Permission denied" | ||
152 | } | ||
153 | after 100 | ||
154 | #send -- "ls /run/firejail/mnt\r" | ||
155 | #expect { | ||
156 | # timeout {puts "TESTING ERROR 5.3\n";exit} | ||
157 | # "Permission denied" | ||
158 | #} | ||
159 | #after 100 | ||
160 | send -- "ls /run/firejail/name\r" | ||
161 | expect { | ||
162 | timeout {puts "TESTING ERROR 5.4\n";exit} | ||
163 | "Permission denied" | ||
164 | } | ||
165 | after 100 | ||
166 | send -- "ls /run/firejail/network\r" | ||
167 | expect { | ||
168 | timeout {puts "TESTING ERROR 5.5\n";exit} | ||
169 | "Permission denied" | ||
170 | } | ||
171 | after 100 | ||
172 | send -- "ls /run/firejail/x11\r" | ||
173 | expect { | ||
174 | timeout {puts "TESTING ERROR 5.6\n";exit} | ||
175 | "Permission denied" | ||
176 | } | ||
177 | after 100 | ||
88 | send -- "exit\r" | 178 | send -- "exit\r" |
89 | sleep 1 | 179 | sleep 1 |
90 | } | 180 | } |