aboutsummaryrefslogtreecommitdiffstats
path: root/test/compile/compile.sh
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-01-25 10:55:15 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-01-25 10:55:15 -0500
commit2e7e0e2d349ffe9dc56ef9e1dfa78e8c2108b259 (patch)
tree85d6e9c8a4aaf59b9917039bc475b3f1fa4ea90d /test/compile/compile.sh
parent--disable-network --disable-userns compile time options (diff)
downloadfirejail-2e7e0e2d349ffe9dc56ef9e1dfa78e8c2108b259.tar.gz
firejail-2e7e0e2d349ffe9dc56ef9e1dfa78e8c2108b259.tar.zst
firejail-2e7e0e2d349ffe9dc56ef9e1dfa78e8c2108b259.zip
testing
Diffstat (limited to 'test/compile/compile.sh')
-rwxr-xr-xtest/compile/compile.sh44
1 files changed, 41 insertions, 3 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh
index 43d27eac9..789ebbf28 100755
--- a/test/compile/compile.sh
+++ b/test/compile/compile.sh
@@ -4,6 +4,8 @@ arr[1]="TEST 1: standard compilation"
4arr[2]="TEST 2: compile seccomp disabled" 4arr[2]="TEST 2: compile seccomp disabled"
5arr[3]="TEST 3: compile chroot disabled" 5arr[3]="TEST 3: compile chroot disabled"
6arr[4]="TEST 4: compile bind disabled" 6arr[4]="TEST 4: compile bind disabled"
7arr[5]="TEST 5: compile user namespace disabled"
8arr[6]="TEST 6: compile network disabled"
7 9
8 10
9# remove previous reports and output file 11# remove previous reports and output file
@@ -28,7 +30,7 @@ while [ $# -gt 0 ]; do # Until you run out of parameters . . .
28 exit 30 exit
29 ;; 31 ;;
30 --help) 32 --help)
31 echo "./autotest.sh [--clean|--help]" 33 echo "./compile.sh [--clean|--help]"
32 exit 34 exit
33 ;; 35 ;;
34 esac 36 esac
@@ -96,10 +98,10 @@ rm output-configure output-make
96#***************************************************************** 98#*****************************************************************
97# TEST 4 99# TEST 4
98#***************************************************************** 100#*****************************************************************
99# - disable bindconfiguration 101# - disable bind configuration
100# - check compilation 102# - check compilation
101#***************************************************************** 103#*****************************************************************
102print_title "${arr[3]}" 104print_title "${arr[4]}"
103# seccomp 105# seccomp
104cd firejail 106cd firejail
105make distclean 107make distclean
@@ -110,6 +112,40 @@ grep Warning output-configure output-make > ./report-test4
110grep Error output-configure output-make >> ./report-test4 112grep Error output-configure output-make >> ./report-test4
111rm output-configure output-make 113rm output-configure output-make
112 114
115#*****************************************************************
116# TEST 5
117#*****************************************************************
118# - disable user namespace configuration
119# - check compilation
120#*****************************************************************
121print_title "${arr[5]}"
122# seccomp
123cd firejail
124make distclean
125./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure
126make -j4 2>&1 | tee ../output-make
127cd ..
128grep Warning output-configure output-make > ./report-test5
129grep Error output-configure output-make >> ./report-test5
130rm output-configure output-make
131
132#*****************************************************************
133# TEST 6
134#*****************************************************************
135# - disable user namespace configuration
136# - check compilation
137#*****************************************************************
138print_title "${arr[6]}"
139# seccomp
140cd firejail
141make distclean
142./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure
143make -j4 2>&1 | tee ../output-make
144cd ..
145grep Warning output-configure output-make > ./report-test6
146grep Error output-configure output-make >> ./report-test6
147rm output-configure output-make
148
113 149
114#***************************************************************** 150#*****************************************************************
115# PRINT REPORTS 151# PRINT REPORTS
@@ -129,3 +165,5 @@ echo ${arr[1]}
129echo ${arr[2]} 165echo ${arr[2]}
130echo ${arr[3]} 166echo ${arr[3]}
131echo ${arr[4]} 167echo ${arr[4]}
168echo ${arr[5]}
169echo ${arr[6]}