Show git information in the functional test
[kconfig-hardened-check.git] / .github / workflows / functional_test.sh
index cbacf872d07c4b42c3c05436c4f22f2e7d8326df..7aa5cb8b402526001ee11aedd1dd9b00c034145d 100644 (file)
@@ -3,6 +3,9 @@
 set -x
 set -e
 
+git status
+git show -s
+
 echo "Beginning of the functional tests"
 
 echo ">>>>> get help <<<<<"
@@ -130,4 +133,8 @@ 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"