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

Function test_basic

v2/test/link.py:20–36  ·  view source on GitHub ↗

Test creation of a single link

()

Source from the content-addressed store, hash-verified

18 t.ignore("bin/test-symlink-source")
19
20def test_basic():
21 """Test creation of a single link"""
22 t = BoostBuild.Tester()
23 t.write("jamroot.jam", """\
24 import link ;
25 link-directory dir1-link : src/dir1/include : <location>. ;
26 """)
27
28 t.write("src/dir1/include/file1.h", "file1")
29
30 t.run_build_system()
31
32 t.expect_addition("include/file1.h")
33 t.expect_content("include/file1.h", "file1")
34 ignore_config(t)
35 t.expect_nothing_more()
36 t.cleanup()
37
38def test_merge_two():
39 """Test merging two directories"""

Callers 1

link.pyFile · 0.70

Calls 7

writeMethod · 0.95
run_build_systemMethod · 0.95
expect_additionMethod · 0.95
expect_contentMethod · 0.95
expect_nothing_moreMethod · 0.95
cleanupMethod · 0.95
ignore_configFunction · 0.85

Tested by

no test coverage detected