aboutsummaryrefslogtreecommitdiffstats
path: root/test/compile/compile.sh
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-03-12 08:34:57 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-03-12 08:34:57 -0500
commit36b5d2a900a4c39aa7c47803ead1bbf3f9ee2da5 (patch)
tree1dbb09aeb4b548a9d80e229af8b7fa4d1bb8ff0f /test/compile/compile.sh
parentcompile time support to disable file transfer (diff)
downloadfirejail-36b5d2a900a4c39aa7c47803ead1bbf3f9ee2da5.tar.gz
firejail-36b5d2a900a4c39aa7c47803ead1bbf3f9ee2da5.tar.zst
firejail-36b5d2a900a4c39aa7c47803ead1bbf3f9ee2da5.zip
compile test
Diffstat (limited to 'test/compile/compile.sh')
-rwxr-xr-xtest/compile/compile.sh20
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"
8arr[6]="TEST 6: compile network disabled" 8arr[6]="TEST 6: compile network disabled"
9arr[7]="TEST 7: compile X11 disabled" 9arr[7]="TEST 7: compile X11 disabled"
10arr[8]="TEST 8: compile network restricted" 10arr[8]="TEST 8: compile network restricted"
11arr[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#*****************************************************************
194print_title "${arr[9]}"
195# seccomp
196cd firejail
197make distclean
198./configure --prefix=/usr --enable-network=restricted --enable-fatal-warnings 2>&1 | tee ../output-configure
199make -j4 2>&1 | tee ../output-make
200cd ..
201grep Warning output-configure output-make > ./report-test9
202grep Error output-configure output-make >> ./report-test9
203rm output-configure output-make
204
205
206#*****************************************************************
188# PRINT REPORTS 207# PRINT REPORTS
189#***************************************************************** 208#*****************************************************************
190echo 209echo
@@ -206,3 +225,4 @@ echo ${arr[5]}
206echo ${arr[6]} 225echo ${arr[6]}
207echo ${arr[7]} 226echo ${arr[7]}
208echo ${arr[8]} 227echo ${arr[8]}
228echo ${arr[9]}