From 7c16e48617688cf4c67dfe5d430cfc2e3c29851c Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 13 Aug 2023 20:04:32 +0300 Subject: [PATCH] Improve checking the combinations of flags in the functional test --- .github/workflows/functional_test.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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 <<<<<" -- 2.31.1