2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

Test for composite properties in target references.

[SVN r16347]
This commit is contained in:
Vladimir Prus
2002-11-20 16:38:53 +00:00
parent 30728fd3cc
commit f134aad086
6 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
project test : requirements <include>everything <threading>single ;
make a.exe : a.obj lib/b.obj/<variant>release : yfc-link ;
make b.exe : a.obj : yfc-link : <define>MACROS ;
make a.obj : a.cpp : yfc-compile ;

View File

@@ -0,0 +1,2 @@
make b.obj : b.cpp : yfc-compile ;

View File

@@ -90,4 +90,20 @@ t.run_build_system("rtti=on", stdout=expected, status=None)
#"bin/gcc/debug/a_gcc.obj\n"
#)
# Test that if we specified composite property in target reference,
# everything works OK.
t.copy("lib/Jamfile1", "lib/Jamfile")
t.copy("Jamfile5", "Jamfile")
t.run_build_system()
t.expect_addition("lib/bin/gcc/release/b.obj")
t.expect_content("bin/gcc/debug/a.exe",
"gcc/debug/include-everything\n" +
"bin/gcc/debug/a.obj lib/bin/gcc/release/b.obj\n"
)
t.cleanup()

View File

@@ -0,0 +1,6 @@
project test : requirements <include>everything <threading>single ;
make a.exe : a.obj lib/b.obj/<variant>release : yfc-link ;
make b.exe : a.obj : yfc-link : <define>MACROS ;
make a.obj : a.cpp : yfc-compile ;

View File

@@ -0,0 +1,2 @@
make b.obj : b.cpp : yfc-compile ;

View File

@@ -90,4 +90,20 @@ t.run_build_system("rtti=on", stdout=expected, status=None)
#"bin/gcc/debug/a_gcc.obj\n"
#)
# Test that if we specified composite property in target reference,
# everything works OK.
t.copy("lib/Jamfile1", "lib/Jamfile")
t.copy("Jamfile5", "Jamfile")
t.run_build_system()
t.expect_addition("lib/bin/gcc/release/b.obj")
t.expect_content("bin/gcc/debug/a.exe",
"gcc/debug/include-everything\n" +
"bin/gcc/debug/a.obj lib/bin/gcc/release/b.obj\n"
)
t.cleanup()