diff options
-rwxr-xr-x | test/compile/compile.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh index 40d37a990..70c24ca3e 100755 --- a/test/compile/compile.sh +++ b/test/compile/compile.sh | |||
@@ -8,6 +8,7 @@ arr[5]="TEST 5: compile user namespace disabled" | |||
8 | arr[6]="TEST 6: compile network disabled" | 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 | 12 | ||
12 | 13 | ||
13 | # remove previous reports and output file | 14 | # remove previous reports and output file |
@@ -185,6 +186,24 @@ rm output-configure output-make | |||
185 | 186 | ||
186 | 187 | ||
187 | #***************************************************************** | 188 | #***************************************************************** |
189 | # TEST 9 | ||
190 | #***************************************************************** | ||
191 | # - disable file transfer | ||
192 | # - check compilation | ||
193 | #***************************************************************** | ||
194 | print_title "${arr[9]}" | ||
195 | # seccomp | ||
196 | cd firejail | ||
197 | make distclean | ||
198 | ./configure --prefix=/usr --enable-network=restricted --enable-fatal-warnings 2>&1 | tee ../output-configure | ||
199 | make -j4 2>&1 | tee ../output-make | ||
200 | cd .. | ||
201 | grep Warning output-configure output-make > ./report-test9 | ||
202 | grep Error output-configure output-make >> ./report-test9 | ||
203 | rm output-configure output-make | ||
204 | |||
205 | |||
206 | #***************************************************************** | ||
188 | # PRINT REPORTS | 207 | # PRINT REPORTS |
189 | #***************************************************************** | 208 | #***************************************************************** |
190 | echo | 209 | echo |
@@ -206,3 +225,4 @@ echo ${arr[5]} | |||
206 | echo ${arr[6]} | 225 | echo ${arr[6]} |
207 | echo ${arr[7]} | 226 | echo ${arr[7]} |
208 | echo ${arr[8]} | 227 | echo ${arr[8]} |
228 | echo ${arr[9]} | ||