Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xv6-19au
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
csep551
xv6-19au
Commits
b36276d1
Commit
b36276d1
authored
5 years ago
by
Anish Athalye
Committed by
Xi Wang
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add grading script for lab mmap
parent
1b517659
Branches
xv6-19au
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grade-lab-mmap
+29
-0
29 additions, 0 deletions
grade-lab-mmap
with
29 additions
and
0 deletions
grade-lab-mmap
0 → 100755
+
29
−
0
View file @
b36276d1
#!/usr/bin/env python
import
re
from
gradelib
import
*
r
=
Runner
(
save
(
"
xv6.out
"
))
@test
(
0
,
"
running mmaptest
"
)
def
test_mmaptest
():
r
.
run_qemu
(
shell_script
([
'
mmaptest
'
]),
timeout
=
180
)
@test
(
40
,
"
mmaptest: mmap_test
"
,
parent
=
test_mmaptest
)
def
test_mmaptest_mmap_test
():
r
.
match
(
'
^mmap_test OK$
'
)
@test
(
40
,
"
mmaptest: fork_test
"
,
parent
=
test_mmaptest
)
def
test_mmaptest_fork_test
():
r
.
match
(
'
^fork_test OK$
'
)
@test
(
20
,
"
usertests
"
)
def
test_usertests
():
r
.
run_qemu
(
shell_script
([
'
usertests
'
]),
timeout
=
300
)
r
.
match
(
'
^ALL TESTS PASSED$
'
)
run_tests
()
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