aboutsummaryrefslogtreecommitdiffstats
path: root/test/compile/compile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/compile/compile.sh')
-rwxr-xr-xtest/compile/compile.sh40
1 files changed, 21 insertions, 19 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh
index 2f9e0ece6..6739bc4d6 100755
--- a/test/compile/compile.sh
+++ b/test/compile/compile.sh
@@ -4,7 +4,7 @@
4# License GPL v2 4# License GPL v2
5 5
6arr[1]="TEST 1: standard compilation" 6arr[1]="TEST 1: standard compilation"
7arr[2]="TEST 2: compile seccomp disabled" 7arr[2]="deprecated"
8arr[3]="TEST 3: compile chroot disabled" 8arr[3]="TEST 3: compile chroot disabled"
9arr[4]="TEST 4: compile firetunnel disabled" 9arr[4]="TEST 4: compile firetunnel disabled"
10arr[5]="TEST 5: compile user namespace disabled" 10arr[5]="TEST 5: compile user namespace disabled"
@@ -24,6 +24,8 @@ cleanup() {
24 rm -f report* 24 rm -f report*
25 rm -fr firejail 25 rm -fr firejail
26 rm -f oc* om* 26 rm -f oc* om*
27 rm -f output-configure
28 rm -f output-make
27} 29}
28 30
29print_title() { 31print_title() {
@@ -74,23 +76,23 @@ cp output-make om1
74rm output-configure output-make 76rm output-configure output-make
75 77
76 78
77#***************************************************************** 79##*****************************************************************
78# TEST 2 80## TEST 2
79#***************************************************************** 81##*****************************************************************
80# - disable seccomp configuration 82## - disable seccomp configuration
81#***************************************************************** 83##*****************************************************************
82print_title "${arr[2]}" 84#print_title "${arr[2]}"
83# seccomp 85## seccomp
84cd firejail 86#cd firejail
85make distclean 87#make distclean
86./configure --prefix=/usr --disable-seccomp --enable-fatal-warnings 2>&1 | tee ../output-configure 88#./configure --prefix=/usr --disable-seccomp --enable-fatal-warnings 2>&1 | tee ../output-configure
87make -j4 2>&1 | tee ../output-make 89#make -j4 2>&1 | tee ../output-make
88cd .. 90#cd ..
89grep Warning output-configure output-make > ./report-test2 91#grep Warning output-configure output-make > ./report-test2
90grep Error output-configure output-make >> ./report-test2 92#grep Error output-configure output-make >> ./report-test2
91cp output-configure oc2 93#cp output-configure oc2
92cp output-make om2 94#cp output-make om2
93rm output-configure output-make 95#rm output-configure output-make
94 96
95#***************************************************************** 97#*****************************************************************
96# TEST 3 98# TEST 3
@@ -342,7 +344,7 @@ wc -l report-test*
342echo 344echo
343echo "Legend:" 345echo "Legend:"
344echo ${arr[1]} 346echo ${arr[1]}
345echo ${arr[2]} 347#echo ${arr[2]}
346echo ${arr[3]} 348echo ${arr[3]}
347echo ${arr[4]} 349echo ${arr[4]}
348echo ${arr[5]} 350echo ${arr[5]}