7 r
= Runner(save("xv6.out"))
9 @test(0, "running special file test")
11 r
.run_qemu(shell_script([
15 @test(15, "test /dev/null", parent
=test_special
)
17 r
.match('^SUCCESS: test /dev/null$', no
=["exec .* failed"])
19 @test(15, "test /dev/zero", parent
=test_special
)
21 r
.match('^SUCCESS: test /dev/zero$', no
=["exec .* failed"])
23 @test(15, "test /dev/uptime", parent
=test_special
)
25 r
.match('^SUCCESS: test /dev/uptime$', no
=["exec .* failed"])
27 @test(15, "test /dev/random", parent
=test_special
)
29 r
.match('^SUCCESS: test /dev/random$', no
=["exec .* failed"])
31 @test(20, "test symlinks")
33 r
.run_qemu(shell_script([
36 r
.match('^SUCCESS: test symlinks$', no
=["exec .* failed"])
38 @test(20, "usertests")
40 r
.run_qemu(shell_script([
43 r
.match('^ALL TESTS PASSED$')
45 if __name__
== '__main__':
47 run_tests(outputJSON
=sys
.argv
[1])