From ec9c9816001b62ea130ca39b263d5d4317527127 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 28 Aug 2023 14:20:13 +0300 Subject: [PATCH] Test more wrong combinations of options --- .github/workflows/functional_test.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/functional_test.sh b/.github/workflows/functional_test.sh index f7a384d..9388c5d 100644 --- a/.github/workflows/functional_test.sh +++ b/.github/workflows/functional_test.sh @@ -78,12 +78,18 @@ coverage run -a --branch bin/kconfig-hardened-check -p X86_64 -c kconfig_hardene 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 ">>>>> -s and -p together <<<<<" +coverage run -a --branch bin/kconfig-hardened-check -p X86_64 -s $SYSCTL_EXAMPLE && exit 1 + +echo ">>>>> -s and -g together <<<<<" +coverage run -a --branch bin/kconfig-hardened-check -g X86_64 -s $SYSCTL_EXAMPLE && exit 1 + +echo ">>>>> -p and -g together <<<<<" +coverage run -a --branch bin/kconfig-hardened-check -p X86_64 -g X86_64 && 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 -- 2.31.1