unittests: Build copied BAppTest files
This adds to the "unittests" target a dependency on the "AppTestRunApp3a" (etc.) files meant to be copied as part of the BApplication test suite so they are generated when "jam unittests" is run. * TestsRules: Add "UnitTestDependency" rule. * testapps/Jamfile: Make unit tests depend on copied files. Fixes #12441. Signed-off-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
8d314f692b
commit
6abbd31061
@@ -1,6 +1,12 @@
|
||||
# unit test pseudo target
|
||||
NotFile unittests ;
|
||||
|
||||
rule UnitTestDependency
|
||||
{
|
||||
Depends unittests : $(1) ;
|
||||
}
|
||||
|
||||
|
||||
rule UnitTestLib
|
||||
{
|
||||
# UnitTestLib <lib> : <sources> : <libraries> ;
|
||||
@@ -30,7 +36,7 @@ rule UnitTestLib
|
||||
MakeLocate $(lib) : $(TARGET_UNIT_TEST_LIB_DIR) ;
|
||||
SharedLibrary $(lib) : $(sources) : $(libraries) libcppunit.so ;
|
||||
|
||||
Depends unittests : $(lib) ;
|
||||
UnitTestDependency $(lib) ;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +66,7 @@ rule UnitTest
|
||||
SimpleTest $(target) : $(sources) : $(libraries) libcppunit.so
|
||||
: $(resources) ;
|
||||
|
||||
Depends unittests : $(target) ;
|
||||
UnitTestDependency $(target) ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user