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

Function test_default_order_mixed

test/ordered_include.py:49–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 tester.cleanup()
48
49def test_default_order_mixed():
50 tester = BoostBuild.Tester(use_test_config=False)
51 tester.write("jamroot.jam", """
52
53 import order ;
54 import "class" : new ;
55
56 obj test : test.cpp : <include>b <include>a <include>c&&d ;
57 """)
58
59 tester.write("test.cpp", """
60 #include <test.hpp>
61 int main() { f(); }
62 """)
63
64 tester.write("a/test.hpp", """
65 void f();
66 """)
67
68 tester.write("b/test.hpp", """
69 """)
70
71 tester.run_build_system()
72
73 tester.expect_addition("bin/$toolset/debug/test.obj")
74
75 # Check that the dependencies are correct
76 tester.touch("a/test.hpp")
77 tester.run_build_system()
78 tester.expect_touch("bin/$toolset/debug/test.obj")
79 tester.expect_nothing_more()
80
81 tester.touch("b/test.hpp")
82 tester.run_build_system()
83 tester.expect_nothing_more()
84
85 tester.cleanup()
86
87def test_basic():
88 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