From: Alexander Popov Date: Sun, 2 Jun 2024 17:24:52 +0000 (+0300) Subject: CI: Add the test for the code checking that the cmdline file is not empty X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=ecaa094f17102756f371a15e519e79ab37df4686;hp=047d84b9595b38df0523c816efc0233853fe4b46;p=kconfig-hardened-check.git CI: Add the test for the code checking that the cmdline file is not empty --- 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"