MCPcopy Create free account
hub / github.com/boostorg/build / test1

Function test1

v2/test/test_rc.py:84–95  ·  view source on GitHub ↗
(n, expect, noexec=False)

Source from the content-addressed store, hash-verified

82 t.write("xxx.bin", "foo")
83
84 def test1(n, expect, noexec=False):
85 params = ["-sXXX=%d" % n]
86 if noexec:
87 params.append("-n")
88 params.append("-sNOEXEC=NOEXEC")
89 t.run_build_system(params)
90 t.expect_output_lines("*NOEXEC*", noexec)
91 obj_file = "xxx_res.obj"
92 t.expect_output_lines("compile.resource.dummy *%s" % obj_file, expect)
93 if expect and not noexec:
94 expect("bin/%s/debug/%s" % (toolsetName, obj_file))
95 t.expect_nothing_more()
96
97 def test(n, expect):
98 test1(n, expect, noexec=True)

Callers 1

testFunction · 0.70

Calls 4

appendMethod · 0.80
run_build_systemMethod · 0.80
expect_output_linesMethod · 0.80
expect_nothing_moreMethod · 0.80

Tested by

no test coverage detected