X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=.woodpecker%2Ffunctional_test.yml;h=7f703281c12ecf1246d373bac1e8d74718ccbbbf;hb=bd3b0638e8c18cd629bd8c639d273d0e98d36cd2;hp=ebd631ac6a0bc7f317ade3ca062794e670d17541;hpb=b266de5d93d81e6adf4169c7aad4fb636ed6f301;p=kconfig-hardened-check.git diff --git a/.woodpecker/functional_test.yml b/.woodpecker/functional_test.yml index ebd631a..7f70328 100644 --- a/.woodpecker/functional_test.yml +++ b/.woodpecker/functional_test.yml @@ -16,7 +16,18 @@ pipeline: - kconfig-hardened-check - echo "Check all configs with the installed tool..." - CONFIG_DIR=`find /usr/local/lib/ -name config_files` - - KCONFIGS=`find $CONFIG_DIR -type f | grep "\.config"` + - KCONFIGS=`find $CONFIG_DIR -type f | grep -e "\.config" -e "\.gz"` - COUNT=0 - for C in $KCONFIGS; do COUNT=$(expr $COUNT + 1); echo ">>>>> checking kconfig number $COUNT <<<<<"; kconfig-hardened-check -c $C -l /proc/cmdline; done - - echo ">>>>> have checked $COUNT kconfigs <<<<<" + - echo "Have checked $COUNT kconfigs" + functional-test-with-coverage: + image: python:3 + pull: true + commands: + - echo "Install the coverage tool..." + - python --version + - pip install --no-cache-dir coverage + - echo "Run the functional tests and collect the coverage..." + - sh .github/workflows/functional_test.sh + - echo "Show the coverage report..." + - coverage report