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

Function boost_build_testing_support_timing_rule

v2/test/timedata.py:103–129  ·  view source on GitHub ↗

Tests the target build timing rule provided by the Boost Build testing support system.

()

Source from the content-addressed store, hash-verified

101###############################################################################
102
103def boost_build_testing_support_timing_rule():
104 """
105 Tests the target build timing rule provided by the Boost Build testing
106 support system.
107
108 """
109 t = BoostBuild.Tester(use_test_config=False)
110
111 t.write("aaa.cpp", "int main() {}\n")
112
113 t.write("jamroot.jam", """\
114import testing ;
115exe my-exe : aaa.cpp ;
116time my-time : my-exe ;
117""")
118
119 t.run_build_system()
120 t.expect_addition("bin/$toolset/debug/aaa.obj")
121 t.expect_addition("bin/$toolset/debug/my-exe.exe")
122 t.expect_addition("bin/$toolset/debug/my-time.time")
123
124 t.expect_content_lines("bin/$toolset/debug/my-time.time",
125 "user: *[0-9] seconds")
126 t.expect_content_lines("bin/$toolset/debug/my-time.time",
127 "system: *[0-9] seconds")
128
129 t.cleanup()
130
131
132###############################################################################

Callers 1

timedata.pyFile · 0.85

Calls 5

writeMethod · 0.95
run_build_systemMethod · 0.95
expect_additionMethod · 0.95
expect_content_linesMethod · 0.95
cleanupMethod · 0.95

Tested by

no test coverage detected