diff options
Diffstat (limited to 'test/dist-compile/compile.sh')
-rwxr-xr-x | test/dist-compile/compile.sh | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/test/dist-compile/compile.sh b/test/dist-compile/compile.sh index 64c99133a..2d055c1bd 100755 --- a/test/dist-compile/compile.sh +++ b/test/dist-compile/compile.sh | |||
@@ -9,7 +9,8 @@ arr[6]="TEST 6: compile network disabled" | |||
9 | arr[7]="TEST 7: compile X11 disabled" | 9 | arr[7]="TEST 7: compile X11 disabled" |
10 | arr[8]="TEST 8: compile network restricted" | 10 | arr[8]="TEST 8: compile network restricted" |
11 | arr[9]="TEST 9: compile file transfer disabled" | 11 | arr[9]="TEST 9: compile file transfer disabled" |
12 | 12 | arr[10]="TEST 10: compile disable whitelist" | |
13 | arr[11]="TEST 11: compile disable global config" | ||
13 | 14 | ||
14 | # remove previous reports and output file | 15 | # remove previous reports and output file |
15 | cleanup() { | 16 | cleanup() { |
@@ -213,7 +214,7 @@ print_title "${arr[9]}" | |||
213 | # seccomp | 214 | # seccomp |
214 | cd firejail | 215 | cd firejail |
215 | make distclean | 216 | make distclean |
216 | ./configure --prefix=/usr --enable-network=restricted --enable-fatal-warnings 2>&1 | tee ../output-configure | 217 | ./configure --prefix=/usr --disable-file-transfer --enable-fatal-warnings 2>&1 | tee ../output-configure |
217 | make -j4 2>&1 | tee ../output-make | 218 | make -j4 2>&1 | tee ../output-make |
218 | cd .. | 219 | cd .. |
219 | grep Warning output-configure output-make > ./report-test9 | 220 | grep Warning output-configure output-make > ./report-test9 |
@@ -222,6 +223,44 @@ cp output-configure oc9 | |||
222 | cp output-make om9 | 223 | cp output-make om9 |
223 | rm output-configure output-make | 224 | rm output-configure output-make |
224 | 225 | ||
226 | #***************************************************************** | ||
227 | # TEST 10 | ||
228 | #***************************************************************** | ||
229 | # - disable whitelist | ||
230 | # - check compilation | ||
231 | #***************************************************************** | ||
232 | print_title "${arr[10]}" | ||
233 | # seccomp | ||
234 | cd firejail | ||
235 | make distclean | ||
236 | ./configure --prefix=/usr --disable-whitelist --enable-fatal-warnings 2>&1 | tee ../output-configure | ||
237 | make -j4 2>&1 | tee ../output-make | ||
238 | cd .. | ||
239 | grep Warning output-configure output-make > ./report-test10 | ||
240 | grep Error output-configure output-make >> ./report-test10 | ||
241 | cp output-configure oc10 | ||
242 | cp output-make om10 | ||
243 | rm output-configure output-make | ||
244 | |||
245 | #***************************************************************** | ||
246 | # TEST 11 | ||
247 | #***************************************************************** | ||
248 | # - disable global config | ||
249 | # - check compilation | ||
250 | #***************************************************************** | ||
251 | print_title "${arr[11]}" | ||
252 | # seccomp | ||
253 | cd firejail | ||
254 | make distclean | ||
255 | ./configure --prefix=/usr --disable-globalcfg --enable-fatal-warnings 2>&1 | tee ../output-configure | ||
256 | make -j4 2>&1 | tee ../output-make | ||
257 | cd .. | ||
258 | grep Warning output-configure output-make > ./report-test11 | ||
259 | grep Error output-configure output-make >> ./report-test11 | ||
260 | cp output-configure oc11 | ||
261 | cp output-make om11 | ||
262 | rm output-configure output-make | ||
263 | |||
225 | 264 | ||
226 | #***************************************************************** | 265 | #***************************************************************** |
227 | # PRINT REPORTS | 266 | # PRINT REPORTS |
@@ -246,3 +285,5 @@ echo ${arr[6]} | |||
246 | echo ${arr[7]} | 285 | echo ${arr[7]} |
247 | echo ${arr[8]} | 286 | echo ${arr[8]} |
248 | echo ${arr[9]} | 287 | echo ${arr[9]} |
288 | echo ${arr[10]} | ||
289 | echo ${arr[11]} | ||