7 r
= Runner(save("xv6.out"))
9 @test(0, "running cowtest")
11 r
.run_qemu(shell_script([
15 @test(30, "simple", parent
=test_cowtest
)
17 matches
= re
.findall("^simple: ok$", r
.qemu
.output
, re
.M
)
18 assert_equal(len(matches
), 2, "Number of appearances of 'simple: ok'")
20 @test(30, "three", parent
=test_cowtest
)
22 matches
= re
.findall("^three: ok$", r
.qemu
.output
, re
.M
)
23 assert_equal(len(matches
), 3, "Number of appearances of 'three: ok'")
25 @test(20, "file", parent
=test_cowtest
)
29 @test(20, "usertests")
31 r
.run_qemu(shell_script([
34 r
.match('^ALL TESTS PASSED$')
36 if __name__
== '__main__':
38 run_tests(outputJSON
=sys
.argv
[1])