From: Alexander Popov Date: Sun, 13 Aug 2023 17:04:32 +0000 (+0300) Subject: Improve checking the combinations of flags in the functional test X-Git-Tag: v0.6.6~100 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7c16e48617688cf4c67dfe5d430cfc2e3c29851c;p=kconfig-hardened-check.git Improve checking the combinations of flags in the functional test --- diff --git a/.github/workflows/functional_test.sh b/.github/workflows/functional_test.sh index cb71527..c41a7ad 100644 --- a/.github/workflows/functional_test.sh +++ b/.github/workflows/functional_test.sh @@ -58,22 +58,26 @@ done echo "\n>>>>> have checked $COUNT kconfigs <<<<<" echo "Collect coverage for error handling" -echo ">>>>> lonely -l <<<<<" + +echo ">>>>> -c and -p together <<<<<" +coverage run -a --branch bin/kconfig-hardened-check -p X86_64 -c kconfig_hardened_check/config_files/distros/fedora_34.config && exit 1 + +echo ">>>>> -c and -g together <<<<<" +coverage run -a --branch bin/kconfig-hardened-check -g X86_64 -c kconfig_hardened_check/config_files/distros/fedora_34.config && exit 1 + +echo ">>>>> -p and -g together <<<<<" +coverage run -a --branch bin/kconfig-hardened-check -p X86_64 -g X86_64 && exit 1 + +echo ">>>>> -l without -c <<<<<" coverage run -a --branch bin/kconfig-hardened-check -l /proc/cmdline && exit 1 echo ">>>>> wrong modes for -p <<<<<" coverage run -a --branch bin/kconfig-hardened-check -p X86_64 -m show_ok && exit 1 coverage run -a --branch bin/kconfig-hardened-check -p X86_64 -m show_fail && exit 1 -echo ">>>>> -p and -c together <<<<<" -coverage run -a --branch bin/kconfig-hardened-check -p X86_64 -c kconfig_hardened_check/config_files/distros/fedora_34.config && exit 1 - echo ">>>>> wrong mode for -g <<<<<" coverage run -a --branch bin/kconfig-hardened-check -g X86_64 -m show_ok && exit 1 -echo ">>>>> -g and -c together <<<<<" -coverage run -a --branch bin/kconfig-hardened-check -g X86_64 -c kconfig_hardened_check/config_files/distros/fedora_34.config && exit 1 - cp kconfig_hardened_check/config_files/distros/fedora_34.config ./test.config echo ">>>>> no kernel version <<<<<"