diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-30 07:27:31 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-30 07:27:31 -0400 |
commit | a1272742cfbdbfe999a701f804b58ceb4605713d (patch) | |
tree | 16d6013c8d99d9e4370d1672b4018f958081f416 /test/protocol.exp | |
parent | Merge pull request #490 from reinerh/master (diff) | |
download | firejail-a1272742cfbdbfe999a701f804b58ceb4605713d.tar.gz firejail-a1272742cfbdbfe999a701f804b58ceb4605713d.tar.zst firejail-a1272742cfbdbfe999a701f804b58ceb4605713d.zip |
added make test-filters
Diffstat (limited to 'test/protocol.exp')
-rwxr-xr-x | test/protocol.exp | 184 |
1 files changed, 0 insertions, 184 deletions
diff --git a/test/protocol.exp b/test/protocol.exp deleted file mode 100755 index 018f4cd9b..000000000 --- a/test/protocol.exp +++ /dev/null | |||
@@ -1,184 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --noprofile --protocol=unix ../src/tools/syscall_test socket\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 1\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 1.1\n";exit} | ||
14 | "socket AF_INET" | ||
15 | } | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1.2\n";exit} | ||
18 | "Operation not supported" | ||
19 | } | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 1.3\n";exit} | ||
22 | "socket AF_INET6" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 1.4\n";exit} | ||
26 | "Operation not supported" | ||
27 | } | ||
28 | expect { | ||
29 | timeout {puts "TESTING ERROR 1.5\n";exit} | ||
30 | "socket AF_NETLINK" | ||
31 | } | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 1.6\n";exit} | ||
34 | "Operation not supported" | ||
35 | } | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 1.7\n";exit} | ||
38 | "socket AF_UNIX" | ||
39 | } | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 1.8\n";exit} | ||
42 | "socket AF_PACKETX" | ||
43 | } | ||
44 | expect { | ||
45 | timeout {puts "TESTING ERROR 1.9\n";exit} | ||
46 | "Operation not supported" | ||
47 | } | ||
48 | sleep 1 | ||
49 | |||
50 | send -- "firejail --noprofile --protocol=inet6,packet ../src/tools/syscall_test socket\r" | ||
51 | expect { | ||
52 | timeout {puts "TESTING ERROR 2\n";exit} | ||
53 | "Child process initialized" | ||
54 | } | ||
55 | expect { | ||
56 | timeout {puts "TESTING ERROR 2.1\n";exit} | ||
57 | "socket AF_INET" | ||
58 | } | ||
59 | expect { | ||
60 | timeout {puts "TESTING ERROR 2.2\n";exit} | ||
61 | "Operation not supported" | ||
62 | } | ||
63 | expect { | ||
64 | timeout {puts "TESTING ERROR 2.3\n";exit} | ||
65 | "socket AF_INET6" | ||
66 | } | ||
67 | expect { | ||
68 | timeout {puts "TESTING ERROR 2.4\n";exit} | ||
69 | "socket AF_NETLINK" | ||
70 | } | ||
71 | expect { | ||
72 | timeout {puts "TESTING ERROR 2.5\n";exit} | ||
73 | "Operation not supported" | ||
74 | } | ||
75 | expect { | ||
76 | timeout {puts "TESTING ERROR 2.6\n";exit} | ||
77 | "socket AF_UNIX" | ||
78 | } | ||
79 | expect { | ||
80 | timeout {puts "TESTING ERROR 2.7\n";exit} | ||
81 | "Operation not supported" | ||
82 | } | ||
83 | expect { | ||
84 | timeout {puts "TESTING ERROR 2.8\n";exit} | ||
85 | "socket AF_PACKETX" | ||
86 | } | ||
87 | expect { | ||
88 | timeout {puts "TESTING ERROR 2.9\n";exit} | ||
89 | "after socket" | ||
90 | } | ||
91 | sleep 1 | ||
92 | |||
93 | # profile testing | ||
94 | send -- "firejail --profile=protocol1.profile ../src/tools/syscall_test socket\r" | ||
95 | expect { | ||
96 | timeout {puts "TESTING ERROR 3\n";exit} | ||
97 | "Child process initialized" | ||
98 | } | ||
99 | expect { | ||
100 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
101 | "socket AF_INET" | ||
102 | } | ||
103 | expect { | ||
104 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
105 | "Operation not supported" | ||
106 | } | ||
107 | expect { | ||
108 | timeout {puts "TESTING ERROR 3.3\n";exit} | ||
109 | "socket AF_INET6" | ||
110 | } | ||
111 | expect { | ||
112 | timeout {puts "TESTING ERROR 3.4\n";exit} | ||
113 | "Operation not supported" | ||
114 | } | ||
115 | expect { | ||
116 | timeout {puts "TESTING ERROR 3.5\n";exit} | ||
117 | "socket AF_NETLINK" | ||
118 | } | ||
119 | expect { | ||
120 | timeout {puts "TESTING ERROR 3.6\n";exit} | ||
121 | "Operation not supported" | ||
122 | } | ||
123 | expect { | ||
124 | timeout {puts "TESTING ERROR 3.7\n";exit} | ||
125 | "socket AF_UNIX" | ||
126 | } | ||
127 | expect { | ||
128 | timeout {puts "TESTING ERROR 3.8\n";exit} | ||
129 | "socket AF_PACKETX" | ||
130 | } | ||
131 | expect { | ||
132 | timeout {puts "TESTING ERROR 3.9\n";exit} | ||
133 | "Operation not supported" | ||
134 | } | ||
135 | sleep 1 | ||
136 | |||
137 | send -- "firejail --profile=protocol2.profile ../src/tools/syscall_test socket\r" | ||
138 | expect { | ||
139 | timeout {puts "TESTING ERROR 4\n";exit} | ||
140 | "Child process initialized" | ||
141 | } | ||
142 | expect { | ||
143 | timeout {puts "TESTING ERROR 4.1\n";exit} | ||
144 | "socket AF_INET" | ||
145 | } | ||
146 | expect { | ||
147 | timeout {puts "TESTING ERROR 4.2\n";exit} | ||
148 | "Operation not supported" | ||
149 | } | ||
150 | expect { | ||
151 | timeout {puts "TESTING ERROR 4.3\n";exit} | ||
152 | "socket AF_INET6" | ||
153 | } | ||
154 | expect { | ||
155 | timeout {puts "TESTING ERROR 4.4\n";exit} | ||
156 | "socket AF_NETLINK" | ||
157 | } | ||
158 | expect { | ||
159 | timeout {puts "TESTING ERROR 4.5\n";exit} | ||
160 | "Operation not supported" | ||
161 | } | ||
162 | expect { | ||
163 | timeout {puts "TESTING ERROR 4.6\n";exit} | ||
164 | "socket AF_UNIX" | ||
165 | } | ||
166 | expect { | ||
167 | timeout {puts "TESTING ERROR 4.7\n";exit} | ||
168 | "Operation not supported" | ||
169 | } | ||
170 | expect { | ||
171 | timeout {puts "TESTING ERROR 4.8\n";exit} | ||
172 | "socket AF_PACKETX" | ||
173 | } | ||
174 | expect { | ||
175 | timeout {puts "TESTING ERROR 4.9\n";exit} | ||
176 | "after socket" | ||
177 | } | ||
178 | sleep 1 | ||
179 | |||
180 | |||
181 | |||
182 | |||
183 | |||
184 | puts "\nall done\n" | ||