()
| 9 | import BoostBuild |
| 10 | |
| 11 | def test_basic(): |
| 12 | t = BoostBuild.Tester(use_test_config=False) |
| 13 | |
| 14 | t.write("jamroot.jam", "lib a : a.cpp : <include>. ;") |
| 15 | t.write("a.cpp", """\ |
| 16 | #include <a.h> |
| 17 | void |
| 18 | # ifdef _WIN32 |
| 19 | __declspec(dllexport) |
| 20 | # endif |
| 21 | foo() {} |
| 22 | """) |
| 23 | t.write("a.h", "//empty file\n") |
| 24 | t.write("d/jamfile.jam", "exe b : b.cpp ..//a ;") |
| 25 | t.write("d/b.cpp", """\ |
| 26 | void foo(); |
| 27 | int main() { foo(); } |
| 28 | """) |
| 29 | t.run_build_system(subdir="d") |
| 30 | |
| 31 | # Path features with condition. |
| 32 | t.write("jamroot.jam", "lib a : a.cpp : <variant>debug:<include>. ;") |
| 33 | t.rm("bin") |
| 34 | t.run_build_system(subdir="d") |
| 35 | |
| 36 | |
| 37 | # Path features with condition in usage requirements. |
| 38 | t.write("jamroot.jam", """\ |
| 39 | lib a : a.cpp : <include>. : : <variant>debug:<include>. ; |
| 40 | """) |
| 41 | t.write("d/b.cpp", """\ |
| 42 | #include <a.h> |
| 43 | void foo(); |
| 44 | int main() { foo(); } |
| 45 | """) |
| 46 | t.rm("d/bin") |
| 47 | t.run_build_system(subdir="d") |
| 48 | |
| 49 | t.cleanup() |
| 50 | |
| 51 | |
| 52 | def test_absolute_paths(): |
no test coverage detected