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

Function test_ordered_paths

test/path_features.py:80–95  ·  view source on GitHub ↗

Test that "&&" in path features is handled correctly.

()

Source from the content-addressed store, hash-verified

78
79
80def test_ordered_paths():
81 """Test that "&&" in path features is handled correctly."""
82
83 t = BoostBuild.Tester(use_test_config=False)
84
85 t.write("jamroot.jam", "build-project sub ;")
86 t.write("sub/jamfile.jam", "exe a : a.cpp : <include>../h1&&../h2 ;")
87 t.write("sub/a.cpp", """\
88#include <header.h>
89int main() { return OK; }
90""")
91 t.write("h2/header.h", "int const OK = 0;\n")
92 t.run_build_system()
93 t.expect_addition("sub/bin/$toolset/debug*/a.exe")
94
95 t.cleanup()
96
97
98def test_paths_set_by_indirect_conditionals():

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