Skip to content
Snippets Groups Projects
Commit b36276d1 authored by Anish Athalye's avatar Anish Athalye Committed by Xi Wang
Browse files

Add grading script for lab mmap

parent 1b517659
Branches xv6-19au
No related tags found
No related merge requests found
#!/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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment