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
|
# unit test pseudo target
|
||||||
NotFile unittests ;
|
NotFile unittests ;
|
||||||
|
|
||||||
|
rule UnitTestDependency
|
||||||
|
{
|
||||||
|
Depends unittests : $(1) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
rule UnitTestLib
|
rule UnitTestLib
|
||||||
{
|
{
|
||||||
# UnitTestLib <lib> : <sources> : <libraries> ;
|
# UnitTestLib <lib> : <sources> : <libraries> ;
|
||||||
@@ -30,7 +36,7 @@ rule UnitTestLib
|
|||||||
MakeLocate $(lib) : $(TARGET_UNIT_TEST_LIB_DIR) ;
|
MakeLocate $(lib) : $(TARGET_UNIT_TEST_LIB_DIR) ;
|
||||||
SharedLibrary $(lib) : $(sources) : $(libraries) libcppunit.so ;
|
SharedLibrary $(lib) : $(sources) : $(libraries) libcppunit.so ;
|
||||||
|
|
||||||
Depends unittests : $(lib) ;
|
UnitTestDependency $(lib) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -60,7 +66,7 @@ rule UnitTest
|
|||||||
SimpleTest $(target) : $(sources) : $(libraries) libcppunit.so
|
SimpleTest $(target) : $(sources) : $(libraries) libcppunit.so
|
||||||
: $(resources) ;
|
: $(resources) ;
|
||||||
|
|
||||||
Depends unittests : $(target) ;
|
UnitTestDependency $(target) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ rule CopyBAppTestApp
|
|||||||
File $(target) : $(source) ;
|
File $(target) : $(source) ;
|
||||||
MODE on $(target) = $(EXEMODE) ;
|
MODE on $(target) = $(EXEMODE) ;
|
||||||
MimeSet $(target) ;
|
MimeSet $(target) ;
|
||||||
|
|
||||||
|
UnitTestDependency $(target) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
# BApplication::BApplication() test apps
|
# BApplication::BApplication() test apps
|
||||||
|
|||||||
Reference in New Issue
Block a user