Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kernel-hardening-checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
kernel-hardening-checker
Commits
353e88fd
Commit
353e88fd
authored
Apr 02, 2023
by
Alexander Popov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_engine: rename unit-tests
parent
5b2b41bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_engine.py
kconfig_hardened_check/test_engine.py
+4
-4
No files found.
kconfig_hardened_check/test_engine.py
View file @
353e88fd
...
...
@@ -98,7 +98,7 @@ class TestEngine(unittest.TestCase):
sys
.
stdout
=
stdout_backup
result
.
append
(
captured_output
.
getvalue
())
def
test_si
ng
le_kconfig
(
self
):
def
test_si
mp
le_kconfig
(
self
):
# 1. prepare the checklist
config_checklist
=
[]
config_checklist
+=
[
KconfigCheck
(
'reason_1'
,
'decision_1'
,
'NAME_1'
,
'expected_1'
)]
...
...
@@ -141,7 +141,7 @@ class TestEngine(unittest.TestCase):
[
"CONFIG_NAME_10"
,
"kconfig"
,
"is not off"
,
"decision_10"
,
"reason_10"
,
"FAIL: is off, not found"
]]
)
def
test_si
ng
le_cmdline
(
self
):
def
test_si
mp
le_cmdline
(
self
):
# 1. prepare the checklist
config_checklist
=
[]
config_checklist
+=
[
CmdlineCheck
(
'reason_1'
,
'decision_1'
,
'name_1'
,
'expected_1'
)]
...
...
@@ -184,7 +184,7 @@ class TestEngine(unittest.TestCase):
[
"name_10"
,
"cmdline"
,
"is not off"
,
"decision_10"
,
"reason_10"
,
"FAIL: is off, not found"
]]
)
def
test_
OR
(
self
):
def
test_
complex_or
(
self
):
# 1. prepare the checklist
config_checklist
=
[]
config_checklist
+=
[
OR
(
KconfigCheck
(
'reason_1'
,
'decision_1'
,
'NAME_1'
,
'expected_1'
),
...
...
@@ -227,7 +227,7 @@ class TestEngine(unittest.TestCase):
[
"CONFIG_NAME_10"
,
"kconfig"
,
"expected_10"
,
"decision_10"
,
"reason_10"
,
"OK: CONFIG_NAME_11 is not off"
]]
)
def
test_
AND
(
self
):
def
test_
complex_and
(
self
):
# 1. prepare the checklist
config_checklist
=
[]
config_checklist
+=
[
AND
(
KconfigCheck
(
'reason_1'
,
'decision_1'
,
'NAME_1'
,
'expected_1'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment