diff options
Diffstat (limited to 'test/compile/compile.sh')
-rwxr-xr-x | test/compile/compile.sh | 40 |
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 | ||
6 | arr[1]="TEST 1: standard compilation" | 6 | arr[1]="TEST 1: standard compilation" |
7 | arr[2]="TEST 2: compile seccomp disabled" | 7 | arr[2]="deprecated" |
8 | arr[3]="TEST 3: compile chroot disabled" | 8 | arr[3]="TEST 3: compile chroot disabled" |
9 | arr[4]="TEST 4: compile firetunnel disabled" | 9 | arr[4]="TEST 4: compile firetunnel disabled" |
10 | arr[5]="TEST 5: compile user namespace disabled" | 10 | arr[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 | ||
29 | print_title() { | 31 | print_title() { |
@@ -74,23 +76,23 @@ cp output-make om1 | |||
74 | rm output-configure output-make | 76 | rm 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 | ##***************************************************************** |
82 | print_title "${arr[2]}" | 84 | #print_title "${arr[2]}" |
83 | # seccomp | 85 | ## seccomp |
84 | cd firejail | 86 | #cd firejail |
85 | make 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 |
87 | make -j4 2>&1 | tee ../output-make | 89 | #make -j4 2>&1 | tee ../output-make |
88 | cd .. | 90 | #cd .. |
89 | grep Warning output-configure output-make > ./report-test2 | 91 | #grep Warning output-configure output-make > ./report-test2 |
90 | grep Error output-configure output-make >> ./report-test2 | 92 | #grep Error output-configure output-make >> ./report-test2 |
91 | cp output-configure oc2 | 93 | #cp output-configure oc2 |
92 | cp output-make om2 | 94 | #cp output-make om2 |
93 | rm 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* | |||
342 | echo | 344 | echo |
343 | echo "Legend:" | 345 | echo "Legend:" |
344 | echo ${arr[1]} | 346 | echo ${arr[1]} |
345 | echo ${arr[2]} | 347 | #echo ${arr[2]} |
346 | echo ${arr[3]} | 348 | echo ${arr[3]} |
347 | echo ${arr[4]} | 349 | echo ${arr[4]} |
348 | echo ${arr[5]} | 350 | echo ${arr[5]} |