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

Function test_order2

test/ordered_include.py:147–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 t.cleanup()
146
147def test_order2():
148 t = BoostBuild.Tester(use_test_config=False)
149 t.write("jamroot.jam", """
150 obj test : test.cpp : <include>b&&a ;
151 """)
152 t.write("test.cpp", """
153 #include <test.h>
154 int main() {}
155 """)
156 t.write("a/test.h", """
157 #error should find b/test.h
158 """)
159 t.write("b/test.h", """
160 """)
161 t.run_build_system()
162
163 t.touch("a/test.h")
164 t.run_build_system()
165 t.expect_nothing_more()
166
167 t.touch("b/test.h")
168 t.run_build_system()
169 t.expect_touch("bin/$toolset/debug/test.obj")
170 t.expect_nothing_more()
171
172 t.cleanup()
173
174def test_order_graph():
175 t = BoostBuild.Tester(use_test_config=False)

Callers 1

ordered_include.pyFile · 0.85

Calls 6

writeMethod · 0.95
run_build_systemMethod · 0.95
touchMethod · 0.95
expect_nothing_moreMethod · 0.95
expect_touchMethod · 0.95
cleanupMethod · 0.95

Tested by

no test coverage detected