Alexander Popov
e2890ca735
CI: Check bin/kernel-hardening-checker with pylint
2025-12-13 21:50:05 +03:00
Alexander Popov
a62eea25de
Add ruff to CI!
2025-12-13 20:46:06 +03:00
Alexander Popov
b6c8fd5dbb
Fix Woodpecker CI (nice trick!)
2025-10-29 21:17:10 +03:00
Willenst
9a5a8726e1
Add test for color emulations
...
Emulate tty for colorize_result() coverage via script cmd. Since script is a terminal emulator, it passes "isatty()" check in engine.
source: https://man7.org/linux/man-pages/man1/script.1.html
refer: https://app.codecov.io/gh/a13xp0p0v/kernel-hardening-checker/blob/master/kernel_hardening_checker%2Fengine.py?flags%5B0%5D=functional_test#L299
2025-10-28 16:57:16 +02:00
Willenst
e6101864bc
Add test for simulation of no kconfigs in system
...
https://app.codecov.io/gh/a13xp0p0v/kernel-hardening-checker/blob/master/kernel_hardening_checker%2F__init__.py?flags%5B0%5D=functional_test#L68
2025-10-28 16:57:12 +02:00
Willenst
9387c0f984
Add test for broken sysctl binary
...
This is the test for https://app.codecov.io/gh/a13xp0p0v/kernel-hardening-checker/blob/master/kernel_hardening_checker%2F__init__.py?flags%5B0%5D=functional_test#L78
2025-10-28 16:41:37 +02:00
Willenst
1cc5a1f87f
Add test for no sysctl in PATH
...
That way we cover this corner case
https://app.codecov.io/gh/a13xp0p0v/kernel-hardening-checker/blob/master/kernel_hardening_checker%2F__init__.py?flags%5B0%5D=functional_test#L75
Idea: https://unix.stackexchange.com/questions/108873/removing-a-directory-from-path
2025-10-28 16:41:37 +02:00
Alexander Popov
c01a6240c9
Fix the broken functional test in the Woodpecker CI
...
Create /etc/sysctl.conf if it's missing.
2025-10-18 12:29:38 +03:00
Alexander Popov
e704a7ff40
CI: Minor style fixes
2025-07-02 00:22:23 +03:00
Alexander Popov
59dd779b17
CI: Introduce the package test
2025-07-01 23:58:51 +03:00
Alexander Popov
f2c326d69a
CI: Add pip check
2025-07-01 19:35:08 +03:00
Alexander Popov
7402180c7f
Revert "CI: Also test on Python 3.8, as stated in pyproject.toml"
...
This reverts commit 6c1d15d8b3 .
2025-06-30 23:40:19 +03:00
Alexander Popov
61dc7d84cf
CI: Use python3 -m pip
...
And drop the unneeded `pip install setuptools` by the way.
2025-06-30 23:38:23 +03:00
Alexander Popov
6c1d15d8b3
CI: Also test on Python 3.8, as stated in pyproject.toml
2025-06-30 21:55:10 +03:00
Alexander Popov
9f35fdbd94
CI: python -> python3
2025-06-30 21:37:52 +03:00
Konrad Weihmann
b9d88fe6b2
ci: fix static_analysis script
...
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com >
2025-06-29 13:38:27 +02:00
Alexander Popov
63e505d06d
Try to fix Codeberg CI
...
Create a missing kernel kconfig to make autodetection work fine.
2025-06-01 01:35:30 +03:00
Alexander Popov
bdb9fe46ab
Get rid of the GitHub alert "Workflow does not contain permissions"
2025-05-06 02:14:24 +03:00
Alexander Popov
45e02860f3
Use the correct term: microarchitecture -> architecture
...
Thanks to Sergey I. for the feedback.
2025-05-06 01:20:26 +03:00
Alexander Popov
527b6b62fc
Don't use /proc/cmdline in the functional test (make it more deterministic)
2025-05-04 02:09:00 +03:00
Alexander Popov
95995066bf
Add RISCV to the functional test
2025-05-04 01:25:34 +03:00
Alexander Popov
856d70652b
Test arch detection for RISCV
2025-03-23 02:04:36 +03:00
Alexander Popov
0d9629f971
Fix the functional test
2025-03-23 02:03:11 +03:00
Alexander Popov
d851031fbb
CI: Print info for debugging autodetection (II)
2024-11-24 01:38:26 +03:00
Alexander Popov
c7111e757d
CI: Print info for debugging autodetection
2024-11-24 01:33:36 +03:00
Alexander Popov
3b65f7721f
CI: Add a kernel version parsing test
2024-11-24 00:16:27 +03:00
Alexander Popov
a906f21e03
CI: Simplify the functional test a bit
2024-11-23 22:47:48 +03:00
Alexander Popov
4bf0f83e36
Use ArchLinux kconfig in the functional test
2024-11-23 22:03:29 +03:00
Alexander Popov
d2c58624bc
Add some cases to improve CI test coverage
2024-11-16 20:13:53 +03:00
Alexander Popov
dafbe07cf2
Test the autodetection
2024-11-16 18:03:22 +03:00
Alexander Popov
77e6cdfef0
Update python versions in CI
2024-10-13 00:24:43 +03:00
Alexander Popov
7177e618a8
Improve the functional test coverage
2024-10-06 22:15:21 +03:00
Alexander Popov
546a7e3bdc
Fix the sysctl.conf test at github
2024-10-06 21:36:55 +03:00
Alexander Popov
4789b011b3
Improve and reorder the functional tests
2024-10-06 21:01:29 +03:00
flipthewho
4150d10206
implementation of detect_arch_sysctl()
2024-09-26 17:59:15 +10:00
Alexander Popov
e528a56dfe
Add the missing SPDX info
2024-07-06 16:02:08 +03:00
Alexander Popov
4586e03b45
Code refactoring to improve test coverage (II)
...
Test the `-v` argument.
2024-06-10 16:13:28 +03:00
Alexander Popov
ecaa094f17
CI: Add the test for the code checking that the cmdline file is not empty
2024-06-02 20:24:52 +03:00
Alexander Popov
047d84b959
CI: Add the tests for the code checking that the config files exist
2024-06-02 20:14:58 +03:00
Alexander Popov
0e7c819a8f
CI: add pylint
2024-05-14 16:40:08 +03:00
Alexander Popov
dda21ff0d5
CI: Put mypy into a separate workflow and add some useful arguments
2024-05-14 02:26:36 +03:00
Alexander Popov
a88e063318
CI: Check static typing with mypy during the functional test
2024-05-13 20:06:16 +03:00
Alexander Popov
b1012b145c
CI: Don't run the tests with coverage control for pull requests
...
Refers to #126
2024-05-03 14:26:39 +03:00
Alexander Popov
78c65e167e
CI: Add a functional test without collecting coverage (tired of codecov failures)
2024-05-02 16:02:03 +03:00
Alexander Popov
c033a506da
CI: Fix the name of engine_unit-test_no_coverage (II)
2024-05-02 15:57:46 +03:00
Alexander Popov
17d9f3b47c
CI: Fix the name of engine_unit-test_no_coverage
2024-05-02 15:54:59 +03:00
Alexander Popov
602dc4836f
CI: Add a unit-test without collecting coverage (tired of codecov failures)
2024-05-02 15:50:53 +03:00
Alexander Popov
5f0062f38d
CI: codecov-action@v3.1.5 with token doesn't work well, go to v4 (facepalm)
2024-04-17 20:47:09 +03:00
Alexander Popov
16cc042a44
CI: Return to codecov-action@v3.1.5, but with tokens
...
codecov-action@v4 is unstable and sometimes gives the error:
```
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
```
2024-04-17 20:32:59 +03:00
Alexander Popov
bc3e49d1da
CI: Update python versions
2024-04-17 20:30:02 +03:00