diff options
author | netblue30 <netblue30@yahoo.com> | 2016-01-25 10:55:15 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-01-25 10:55:15 -0500 |
commit | 2e7e0e2d349ffe9dc56ef9e1dfa78e8c2108b259 (patch) | |
tree | 85d6e9c8a4aaf59b9917039bc475b3f1fa4ea90d | |
parent | --disable-network --disable-userns compile time options (diff) | |
download | firejail-2e7e0e2d349ffe9dc56ef9e1dfa78e8c2108b259.tar.gz firejail-2e7e0e2d349ffe9dc56ef9e1dfa78e8c2108b259.tar.zst firejail-2e7e0e2d349ffe9dc56ef9e1dfa78e8c2108b259.zip |
testing
-rwxr-xr-x | test/compile/compile.sh | 44 |
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" | |||
4 | arr[2]="TEST 2: compile seccomp disabled" | 4 | arr[2]="TEST 2: compile seccomp disabled" |
5 | arr[3]="TEST 3: compile chroot disabled" | 5 | arr[3]="TEST 3: compile chroot disabled" |
6 | arr[4]="TEST 4: compile bind disabled" | 6 | arr[4]="TEST 4: compile bind disabled" |
7 | arr[5]="TEST 5: compile user namespace disabled" | ||
8 | arr[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 | #***************************************************************** |
102 | print_title "${arr[3]}" | 104 | print_title "${arr[4]}" |
103 | # seccomp | 105 | # seccomp |
104 | cd firejail | 106 | cd firejail |
105 | make distclean | 107 | make distclean |
@@ -110,6 +112,40 @@ grep Warning output-configure output-make > ./report-test4 | |||
110 | grep Error output-configure output-make >> ./report-test4 | 112 | grep Error output-configure output-make >> ./report-test4 |
111 | rm output-configure output-make | 113 | rm output-configure output-make |
112 | 114 | ||
115 | #***************************************************************** | ||
116 | # TEST 5 | ||
117 | #***************************************************************** | ||
118 | # - disable user namespace configuration | ||
119 | # - check compilation | ||
120 | #***************************************************************** | ||
121 | print_title "${arr[5]}" | ||
122 | # seccomp | ||
123 | cd firejail | ||
124 | make distclean | ||
125 | ./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure | ||
126 | make -j4 2>&1 | tee ../output-make | ||
127 | cd .. | ||
128 | grep Warning output-configure output-make > ./report-test5 | ||
129 | grep Error output-configure output-make >> ./report-test5 | ||
130 | rm output-configure output-make | ||
131 | |||
132 | #***************************************************************** | ||
133 | # TEST 6 | ||
134 | #***************************************************************** | ||
135 | # - disable user namespace configuration | ||
136 | # - check compilation | ||
137 | #***************************************************************** | ||
138 | print_title "${arr[6]}" | ||
139 | # seccomp | ||
140 | cd firejail | ||
141 | make distclean | ||
142 | ./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure | ||
143 | make -j4 2>&1 | tee ../output-make | ||
144 | cd .. | ||
145 | grep Warning output-configure output-make > ./report-test6 | ||
146 | grep Error output-configure output-make >> ./report-test6 | ||
147 | rm output-configure output-make | ||
148 | |||
113 | 149 | ||
114 | #***************************************************************** | 150 | #***************************************************************** |
115 | # PRINT REPORTS | 151 | # PRINT REPORTS |
@@ -129,3 +165,5 @@ echo ${arr[1]} | |||
129 | echo ${arr[2]} | 165 | echo ${arr[2]} |
130 | echo ${arr[3]} | 166 | echo ${arr[3]} |
131 | echo ${arr[4]} | 167 | echo ${arr[4]} |
168 | echo ${arr[5]} | ||
169 | echo ${arr[6]} | ||