projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1998660
)
CI: Add the tests for the code checking that the config files exist
author
Alexander Popov
<alex.popov@linux.com>
Sun, 2 Jun 2024 17:13:10 +0000
(20:13 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Sun, 2 Jun 2024 17:14:58 +0000
(20:14 +0300)
.github/workflows/functional_test.sh
patch
|
blob
|
history
diff --git
a/.github/workflows/functional_test.sh
b/.github/workflows/functional_test.sh
index 106320c8447516e22c9fb5b1b551b7711ebbe4db..3f6706130852bf3cfe8d2ecd009fc3909f8b2685 100644
(file)
--- a/
.github/workflows/functional_test.sh
+++ b/
.github/workflows/functional_test.sh
@@
-99,6
+99,15
@@
coverage run -a --branch bin/kernel-hardening-checker -g X86_64 -m show_ok && ex
cp kernel_hardening_checker/config_files/distros/fedora_34.config ./test.config
cp kernel_hardening_checker/config_files/distros/fedora_34.config ./test.config
+echo ">>>>> no kconfig file <<<<<"
+coverage run -a --branch bin/kernel-hardening-checker -c ./nosuchfile && exit 1
+
+echo ">>>>> no cmdline file <<<<<"
+coverage run -a --branch bin/kernel-hardening-checker -c ./test.config -l ./nosuchfile && exit 1
+
+echo ">>>>> no sysctl file <<<<<"
+coverage run -a --branch bin/kernel-hardening-checker -s ./nosuchfile && exit 1
+
echo ">>>>> no kernel version <<<<<"
sed '3d' test.config > error.config
coverage run -a --branch bin/kernel-hardening-checker -c error.config && exit 1
echo ">>>>> no kernel version <<<<<"
sed '3d' test.config > error.config
coverage run -a --branch bin/kernel-hardening-checker -c error.config && exit 1