Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OS-SWEB-SWET
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ostermayer, Markus
OS-SWEB-SWET
Commits
48580e44
Commit
48580e44
authored
2 years ago
by
Ostermayer, Markus
Browse files
Options
Downloads
Patches
Plain Diff
added support for userspace ssps
parent
c72e8e73
No related branches found
No related tags found
No related merge requests found
Pipeline
#220798
passed
2 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
swet/_testutils.py
+7
-0
7 additions, 0 deletions
swet/_testutils.py
with
8 additions
and
1 deletion
setup.cfg
+
1
−
1
View file @
48580e44
[metadata]
name
=
swet
version
=
0.0.
6
version
=
0.0.
7
description
=
SWET (Schon wieder ein Testsystem) is a minimal Testsystem for SWEB (Schon wieder ein Betriebssystem)
long_description
=
file: README.md
long_description_content_type
=
text/markdown
...
...
This diff is collapsed.
Click to expand it.
swet/_testutils.py
+
7
−
0
View file @
48580e44
...
...
@@ -18,6 +18,7 @@ class Result(Enum):
failed
=
'
FAILED
'
skipped
=
'
SKIPPED
'
vfs_error
=
'
VFS-ERROR
'
userspace_ssp
=
'
Userspace Stack Smashing Protector
'
class
Colors
(
Enum
):
...
...
@@ -32,6 +33,7 @@ TEST_RESULT_COLORS = {
Result
.
failed
:
Colors
.
red
,
Result
.
skipped
:
Colors
.
yellow
,
Result
.
vfs_error
:
Colors
.
yellow
,
Result
.
userspace_ssp
:
Colors
.
yellow
,
}
QEMU_EXECUTE_COMMAND
=
[
...
...
@@ -167,6 +169,9 @@ def execute_test(
elif
'
KERNEL PANIC
'
in
logline
:
test_result
=
Result
.
failed
elif
'
Bufferoverflow detected!
'
in
logline
:
test_result
=
Result
.
userspace_ssp
qemu_prozess
.
terminate
()
_print_testresult
(
...
...
@@ -182,6 +187,8 @@ def execute_test(
for
line
in
test_log
:
print
(
line
)
return
-
1
elif
test_result
==
Result
.
userspace_ssp
:
return
-
1
else
:
return
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment