aboutsummaryrefslogtreecommitdiffstats
path: root/test/compile/compile.sh
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-02-24 09:03:11 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-02-24 09:03:11 -0500
commitabe50f280dccc8444e0209816365dfd853bf3c31 (patch)
treec2f9a68b389a7890dc6acbf691c1087bdba14f33 /test/compile/compile.sh
parentx11 work (diff)
downloadfirejail-abe50f280dccc8444e0209816365dfd853bf3c31.tar.gz
firejail-abe50f280dccc8444e0209816365dfd853bf3c31.tar.zst
firejail-abe50f280dccc8444e0209816365dfd853bf3c31.zip
./configure --enable-network=restricted
Diffstat (limited to 'test/compile/compile.sh')
-rwxr-xr-xtest/compile/compile.sh22
1 files changed, 21 insertions, 1 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh
index d191b4d2b..40d37a990 100755
--- a/test/compile/compile.sh
+++ b/test/compile/compile.sh
@@ -7,6 +7,7 @@ arr[4]="TEST 4: compile bind disabled"
7arr[5]="TEST 5: compile user namespace disabled" 7arr[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"
10 11
11 12
12# remove previous reports and output file 13# remove previous reports and output file
@@ -153,7 +154,7 @@ rm output-configure output-make
153# - disable X11 support 154# - disable X11 support
154# - check compilation 155# - check compilation
155#***************************************************************** 156#*****************************************************************
156print_title "${arr[6]}" 157print_title "${arr[7]}"
157# seccomp 158# seccomp
158cd firejail 159cd firejail
159make distclean 160make distclean
@@ -166,6 +167,24 @@ rm output-configure output-make
166 167
167 168
168#***************************************************************** 169#*****************************************************************
170# TEST 8
171#*****************************************************************
172# - enable network restricted
173# - check compilation
174#*****************************************************************
175print_title "${arr[8]}"
176# seccomp
177cd firejail
178make distclean
179./configure --prefix=/usr --enable-network=restricted --enable-fatal-warnings 2>&1 | tee ../output-configure
180make -j4 2>&1 | tee ../output-make
181cd ..
182grep Warning output-configure output-make > ./report-test8
183grep Error output-configure output-make >> ./report-test8
184rm output-configure output-make
185
186
187#*****************************************************************
169# PRINT REPORTS 188# PRINT REPORTS
170#***************************************************************** 189#*****************************************************************
171echo 190echo
@@ -186,3 +205,4 @@ echo ${arr[4]}
186echo ${arr[5]} 205echo ${arr[5]}
187echo ${arr[6]} 206echo ${arr[6]}
188echo ${arr[7]} 207echo ${arr[7]}
208echo ${arr[8]}