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

Function test_order1

test/ordered_include.py:120–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 tester.cleanup()
119
120def test_order1():
121 t = BoostBuild.Tester(use_test_config=False)
122 t.write("jamroot.jam", """
123 obj test : test.cpp : <include>a&&b ;
124 """)
125 t.write("test.cpp", """
126 #include <test.h>
127 int main() {}
128 """)
129 t.write("a/test.h", """
130 """)
131 t.write("b/test.h", """
132 #error should find a/test.h
133 """)
134 t.run_build_system()
135
136 t.touch("a/test.h")
137 t.run_build_system()
138 t.expect_touch("bin/$toolset/debug/test.obj")
139 t.expect_nothing_more()
140
141 t.touch("b/test.h")
142 t.run_build_system()
143 t.expect_nothing_more()
144
145 t.cleanup()
146
147def test_order2():
148 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_touchMethod · 0.95
expect_nothing_moreMethod · 0.95
cleanupMethod · 0.95

Tested by

no test coverage detected