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

Function test_basic

test/path_features.py:11–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import BoostBuild
10
11def 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>
17void
18# ifdef _WIN32
19__declspec(dllexport)
20# endif
21foo() {}
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", """\
26void foo();
27int 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", """\
39lib a : a.cpp : <include>. : : <variant>debug:<include>. ;
40""")
41 t.write("d/b.cpp", """\
42#include <a.h>
43void foo();
44int main() { foo(); }
45""")
46 t.rm("d/bin")
47 t.run_build_system(subdir="d")
48
49 t.cleanup()
50
51
52def test_absolute_paths():

Callers 1

path_features.pyFile · 0.70

Calls 4

writeMethod · 0.95
run_build_systemMethod · 0.95
rmMethod · 0.95
cleanupMethod · 0.95

Tested by

no test coverage detected