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

Function test_basic

test/generators_test.py:14–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def test_basic():
15 t = BoostBuild.Tester()
16 __write_appender(t, "appender.jam")
17 t.write("a.cpp", "")
18 t.write("b.cxx", "")
19 t.write("c.tui", "")
20 t.write("d.wd", "")
21 t.write("e.cpp", "")
22 t.write("x.l", "")
23 t.write("y.x_pro", "")
24 t.write("z.cpp", "")
25 t.write("lib/c.cpp", "int bar() { return 0; }\n")
26 t.write("lib/jamfile.jam", "my-lib auxilliary : c.cpp ;")
27 t.write("jamroot.jam",
28r"""import appender ;
29
30import "class" : new ;
31import generators ;
32import type ;
33
34
35################################################################################
36#
37# We use our own custom EXE, LIB & OBJ target generators as using the regular
38# ones would force us to have to deal with different compiler/linker specific
39# 'features' that really have nothing to do with this test. For example, IBM XL
40# C/C++ for AIX, V12.1 (Version: 12.01.0000.0000) compiler exits with a non-zero
41# exit code and thus fails our build when run with a source file using an
42# unknown suffix like '.marked_cpp'.
43#
44################################################################################
45
46type.register MY_EXE : my_exe ;
47type.register MY_LIB : my_lib ;
48type.register MY_OBJ : my_obj ;
49
50appender.register compile-c : C : MY_OBJ ;
51appender.register compile-cpp : CPP : MY_OBJ ;
52appender.register link-lib composing : MY_OBJ : MY_LIB ;
53appender.register link-exe composing : MY_OBJ MY_LIB : MY_EXE ;
54
55
56################################################################################
57#
58# LEX --> C
59#
60################################################################################
61
62type.register LEX : l ;
63
64appender.register lex-to-c : LEX : C ;
65
66
67################################################################################
68#
69# /--> tUI_H --\
70# tUI --< >--> CPP
71# \------------/

Callers 1

generators_test.pyFile · 0.70

Calls 12

writeMethod · 0.95
run_build_systemMethod · 0.95
expect_additionMethod · 0.95
expect_nothing_moreMethod · 0.95
expect_content_linesMethod · 0.95
fail_testMethod · 0.95
cleanupMethod · 0.95
__match_count_isFunction · 0.85
splitlinesMethod · 0.80
stdoutMethod · 0.80
__write_appenderFunction · 0.70
matchMethod · 0.45

Tested by

no test coverage detected