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:
6
test/project-test4/Jamfile5
Normal file
6
test/project-test4/Jamfile5
Normal 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 ;
|
||||
2
test/project-test4/lib/Jamfile1
Normal file
2
test/project-test4/lib/Jamfile1
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
make b.obj : b.cpp : yfc-compile ;
|
||||
@@ -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()
|
||||
|
||||
6
v2/test/project-test4/Jamfile5
Normal file
6
v2/test/project-test4/Jamfile5
Normal 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 ;
|
||||
2
v2/test/project-test4/lib/Jamfile1
Normal file
2
v2/test/project-test4/lib/Jamfile1
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
make b.obj : b.cpp : yfc-compile ;
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user