X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=.github%2Fworkflows%2Ffunctional_test.sh;h=7aa5cb8b402526001ee11aedd1dd9b00c034145d;hb=4b97fce50b144ea7a266cf7bdd5cb6f274cfa32a;hp=a4fb08597e7141b9f23f3c3ad22fd222a1fca95a;hpb=5c17fe62f55004bd784c6fa97d01f7aa1d841325;p=kconfig-hardened-check.git diff --git a/.github/workflows/functional_test.sh b/.github/workflows/functional_test.sh index a4fb085..7aa5cb8 100644 --- a/.github/workflows/functional_test.sh +++ b/.github/workflows/functional_test.sh @@ -3,6 +3,9 @@ set -x set -e +git status +git show -s + echo "Beginning of the functional tests" echo ">>>>> get help <<<<<" @@ -125,4 +128,13 @@ echo 'hey man 1' > cmdline echo 'hey man 2' >> cmdline coverage run -a --branch bin/kconfig-hardened-check -c test.config -l cmdline && exit 1 +echo ">>>>> unexpected line in the sysctl file <<<<<" +cp $SYSCTL_EXAMPLE error_sysctls +echo 'some strange line' >> error_sysctls +coverage run -a --branch bin/kconfig-hardened-check -c test.config -s error_sysctls && exit 1 + +echo ">>>>> invalid sysctl file <<<<<" +touch empty_file +coverage run -a --branch bin/kconfig-hardened-check -c test.config -s empty_file && exit 1 + echo "The end of the functional tests"