Tests the target build timing rule provided by the Boost Build testing support system.
()
| 101 | ############################################################################### |
| 102 | |
| 103 | def 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", """\ |
| 114 | import testing ; |
| 115 | exe my-exe : aaa.cpp ; |
| 116 | time 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 | ############################################################################### |
no test coverage detected