()
| 9 | import BoostBuild |
| 10 | |
| 11 | def 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 | |
| 49 | def test_default_order_mixed(): |
| 50 | tester = BoostBuild.Tester(use_test_config=False) |
no test coverage detected