From 2e7e0e2d349ffe9dc56ef9e1dfa78e8c2108b259 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 25 Jan 2016 10:55:15 -0500 Subject: testing --- test/compile/compile.sh | 44 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) (limited to 'test/compile') 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" arr[2]="TEST 2: compile seccomp disabled" arr[3]="TEST 3: compile chroot disabled" arr[4]="TEST 4: compile bind disabled" +arr[5]="TEST 5: compile user namespace disabled" +arr[6]="TEST 6: compile network disabled" # remove previous reports and output file @@ -28,7 +30,7 @@ while [ $# -gt 0 ]; do # Until you run out of parameters . . . exit ;; --help) - echo "./autotest.sh [--clean|--help]" + echo "./compile.sh [--clean|--help]" exit ;; esac @@ -96,10 +98,10 @@ rm output-configure output-make #***************************************************************** # TEST 4 #***************************************************************** -# - disable bindconfiguration +# - disable bind configuration # - check compilation #***************************************************************** -print_title "${arr[3]}" +print_title "${arr[4]}" # seccomp cd firejail make distclean @@ -110,6 +112,40 @@ grep Warning output-configure output-make > ./report-test4 grep Error output-configure output-make >> ./report-test4 rm output-configure output-make +#***************************************************************** +# TEST 5 +#***************************************************************** +# - disable user namespace configuration +# - check compilation +#***************************************************************** +print_title "${arr[5]}" +# seccomp +cd firejail +make distclean +./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure +make -j4 2>&1 | tee ../output-make +cd .. +grep Warning output-configure output-make > ./report-test5 +grep Error output-configure output-make >> ./report-test5 +rm output-configure output-make + +#***************************************************************** +# TEST 6 +#***************************************************************** +# - disable user namespace configuration +# - check compilation +#***************************************************************** +print_title "${arr[6]}" +# seccomp +cd firejail +make distclean +./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure +make -j4 2>&1 | tee ../output-make +cd .. +grep Warning output-configure output-make > ./report-test6 +grep Error output-configure output-make >> ./report-test6 +rm output-configure output-make + #***************************************************************** # PRINT REPORTS @@ -129,3 +165,5 @@ echo ${arr[1]} echo ${arr[2]} echo ${arr[3]} echo ${arr[4]} +echo ${arr[5]} +echo ${arr[6]} -- cgit v1.2.3-54-g00ecf