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

Function test_basic

test/ordered_include.py:87–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 tester.cleanup()
86
87def test_basic():
88 tester = BoostBuild.Tester(use_test_config=False)
89 tester.write("jamroot.jam", """
90 obj test : test.cpp : <include>a&&b ;
91 """)
92
93 tester.write("test.cpp", """
94 #include <test1.hpp>
95 #include <test2.hpp>
96 int main() {}
97 """)
98
99 tester.write("a/test1.hpp", """
100 """)
101
102 tester.write("b/test2.hpp", """
103 """)
104
105 tester.run_build_system()
106
107 tester.expect_addition("bin/$toolset/debug/test.obj")
108
109 # Check that the dependencies are correct
110 tester.touch("a/test1.hpp")
111 tester.run_build_system()
112 tester.expect_touch("bin/$toolset/debug/test.obj")
113
114 tester.touch("b/test2.hpp")
115 tester.run_build_system()
116 tester.expect_touch("bin/$toolset/debug/test.obj")
117
118 tester.cleanup()
119
120def test_order1():
121 t = BoostBuild.Tester(use_test_config=False)

Callers 1

ordered_include.pyFile · 0.70

Calls 6

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

Tested by

no test coverage detected