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

Function test_absolute_paths

test/path_features.py:52–77  ·  view source on GitHub ↗

Test that absolute paths inside requirements are ok. The problems appeared only when building targets in subprojects.

()

Source from the content-addressed store, hash-verified

50
51
52def 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", """\
62local pwd = [ PWD ] ;
63project : requirements <include>$(pwd)/x/include ;
64exe m : m.cpp : <include>$(pwd)/x/include2 ;
65""")
66 t.write("x/m.cpp", """\
67#include <h1.hpp>
68#include <h2.hpp>
69int 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
80def test_ordered_paths():

Callers 1

path_features.pyFile · 0.85

Calls 4

writeMethod · 0.95
run_build_systemMethod · 0.95
expect_additionMethod · 0.95
cleanupMethod · 0.95

Tested by

no test coverage detected