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

Function test_default_order

test/ordered_include.py:11–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import BoostBuild
10
11def test_default_order():
12 tester = BoostBuild.Tester(use_test_config=False)
13 tester.write("jamroot.jam", """
14
15 import order ;
16 import "class" : new ;
17
18 obj test : test.cpp : <include>b <include>a ;
19 """)
20
21 tester.write("test.cpp", """
22 #include <test.hpp>
23 int main() { f(); }
24 """)
25
26 tester.write("a/test.hpp", """
27 void f();
28 """)
29
30 tester.write("b/test.hpp", """
31 """)
32
33 tester.run_build_system()
34
35 tester.expect_addition("bin/$toolset/debug*/test.obj")
36
37 # Check that the dependencies are correct
38 tester.touch("a/test.hpp")
39 tester.run_build_system()
40 tester.expect_touch("bin/$toolset/debug*/test.obj")
41 tester.expect_nothing_more()
42
43 tester.touch("b/test.hpp")
44 tester.run_build_system()
45 tester.expect_nothing_more()
46
47 tester.cleanup()
48
49def test_default_order_mixed():
50 tester = BoostBuild.Tester(use_test_config=False)

Callers 1

ordered_include.pyFile · 0.85

Calls 7

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

Tested by

no test coverage detected