Updated and added link-tests to stress auto-linking.

[SVN r21542]
This commit is contained in:
John Maddock
2004-01-08 12:42:38 +00:00
parent e41f88e71d
commit 176b94c8d4
2 changed files with 56 additions and 0 deletions

View File

@ -7,6 +7,32 @@ dll link_test : link_test.cpp
<runtime-link>dynamic <runtime-link>dynamic
<define>BOOST_DYN_LINK=1 <define>BOOST_DYN_LINK=1
<sysinclude>$(BOOST_ROOT) <sysinclude>$(BOOST_ROOT)
# make sure the names of the libraries are correctly named:
common-variant-tag
: :
debug release debug release
; ;
lib link_test : link_test.cpp
:
<sysinclude>$(BOOST_ROOT)
# make sure the names of the libraries are correctly named:
common-variant-tag
:
debug release
;
stage stage/lib : <lib>link_test <dll>link_test
:
# copy to a path rooted at BOOST_ROOT:
<locate>$(BOOST_ROOT)
# make sure the names of the libraries are correctly named:
common-variant-tag
# add this target to the "stage" and "all" psuedo-targets:
<target>stage
<target>all
:
debug release
;

30
test/link/test/Jamfile Normal file
View File

@ -0,0 +1,30 @@
# copyright John Maddock 2003
subproject libs/config/test/link/test ;
# bring in the rules for testing
import testing ./options ;
run ../main.cpp
: #extra depend
: #input-files
: #requirements
<sysinclude>$(BOOST_ROOT)
<library-path>../../../../../stage/lib
<define>BOOST_LIB_DIAGNOSTIC=1
: link_test ;
run ../main.cpp
: #extra depend
: #input-files
: #requirements
<runtime-link>dynamic
<define>BOOST_DYN_LINK=1
<sysinclude>$(BOOST_ROOT)
<library-path>../../../../../stage/lib
<define>BOOST_LIB_DIAGNOSTIC=1
: link_test_dll ;