X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=.github%2Fworkflows%2Ffunctional_test.sh;h=ca50aafaa733e14ddd333478d84a7e86e516c1f5;hb=refs%2Fpull%2F134%2Fhead;hp=3f6706130852bf3cfe8d2ecd009fc3909f8b2685;hpb=047d84b9595b38df0523c816efc0233853fe4b46;p=kconfig-hardened-check.git diff --git a/.github/workflows/functional_test.sh b/.github/workflows/functional_test.sh index 3f67061..ca50aaf 100644 --- a/.github/workflows/functional_test.sh +++ b/.github/workflows/functional_test.sh @@ -105,6 +105,10 @@ coverage run -a --branch bin/kernel-hardening-checker -c ./nosuchfile && exit 1 echo ">>>>> no cmdline file <<<<<" coverage run -a --branch bin/kernel-hardening-checker -c ./test.config -l ./nosuchfile && exit 1 +echo ">>>>> empty cmdline file <<<<<" +touch ./empty_file +coverage run -a --branch bin/kernel-hardening-checker -c ./test.config -l ./empty_file && exit 1 + echo ">>>>> no sysctl file <<<<<" coverage run -a --branch bin/kernel-hardening-checker -s ./nosuchfile && exit 1 @@ -156,7 +160,6 @@ echo 'some strange line' >> error_sysctls coverage run -a --branch bin/kernel-hardening-checker -c test.config -s error_sysctls && exit 1 echo ">>>>> invalid sysctl file <<<<<" -touch empty_file coverage run -a --branch bin/kernel-hardening-checker -c test.config -s empty_file && exit 1 echo "The end of the functional tests"