()
| 11 | |
| 12 | |
| 13 | def test_basic(): |
| 14 | t = BoostBuild.Tester(use_test_config=False) |
| 15 | |
| 16 | t.write("jamroot.jam", "") |
| 17 | t.write("d1/a.cpp", "int main() {}\n") |
| 18 | t.write("d1/jamfile.jam", "exe a : [ glob *.cpp ] ../d2/d//l ;") |
| 19 | t.write("d2/d/l.cpp", """\ |
| 20 | #if defined(_WIN32) |
| 21 | __declspec(dllexport) |
| 22 | void force_import_lib_creation() {} |
| 23 | #endif |
| 24 | """) |
| 25 | t.write("d2/d/jamfile.jam", "lib l : [ glob *.cpp ] ;") |
| 26 | t.write("d3/d/jamfile.jam", "exe a : [ glob ../*.cpp ] ;") |
| 27 | t.write("d3/a.cpp", "int main() {}\n") |
| 28 | |
| 29 | t.run_build_system(subdir="d1") |
| 30 | t.expect_addition("d1/bin/$toolset/debug/a.exe") |
| 31 | |
| 32 | t.run_build_system(subdir="d3/d") |
| 33 | t.expect_addition("d3/d/bin/$toolset/debug/a.exe") |
| 34 | |
| 35 | t.rm("d2/d/bin") |
| 36 | t.run_build_system(subdir="d2/d") |
| 37 | t.expect_addition("d2/d/bin/$toolset/debug/l.dll") |
| 38 | |
| 39 | t.cleanup() |
| 40 | |
| 41 | |
| 42 | def test_source_location(): |
no test coverage detected