Test that absolute paths inside requirements are ok. The problems appeared only when building targets in subprojects.
()
| 50 | |
| 51 | |
| 52 | def test_absolute_paths(): |
| 53 | """ |
| 54 | Test that absolute paths inside requirements are ok. The problems |
| 55 | appeared only when building targets in subprojects. |
| 56 | |
| 57 | """ |
| 58 | t = BoostBuild.Tester(use_test_config=False) |
| 59 | |
| 60 | t.write("jamroot.jam", "build-project x ;") |
| 61 | t.write("x/jamfile.jam", """\ |
| 62 | local pwd = [ PWD ] ; |
| 63 | project : requirements <include>$(pwd)/x/include ; |
| 64 | exe m : m.cpp : <include>$(pwd)/x/include2 ; |
| 65 | """) |
| 66 | t.write("x/m.cpp", """\ |
| 67 | #include <h1.hpp> |
| 68 | #include <h2.hpp> |
| 69 | int main() {} |
| 70 | """) |
| 71 | t.write("x/include/h1.hpp", "\n") |
| 72 | t.write("x/include2/h2.hpp", "\n") |
| 73 | |
| 74 | t.run_build_system() |
| 75 | t.expect_addition("x/bin/$toolset/debug*/m.exe") |
| 76 | |
| 77 | t.cleanup() |
| 78 | |
| 79 | |
| 80 | def test_ordered_paths(): |
no test coverage detected