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

Function test_basic

test/project_glob.py:13–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def 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)
22void 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
42def test_source_location():

Callers 1

project_glob.pyFile · 0.70

Calls 5

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

Tested by

no test coverage detected