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

Added testing.launcher feature. For example, now unit tests can be

run under valgrind.


[SVN r17063]
This commit is contained in:
Vladimir Prus
2003-01-28 15:12:31 +00:00
parent 19b2952fc0
commit f72669f745
2 changed files with 18 additions and 8 deletions

View File

@@ -8,6 +8,12 @@
import targets ;
import class : class new ;
import property ;
import feature ;
import toolset ;
# The feature which controls the name of program used to
# lanch test programs.
feature.feature testing.launcher : : optional free ;
rule unit-test-target-class ( name : project : sources * : requirements *
: default-build * )
@@ -34,13 +40,12 @@ rule unit-test-target-class ( name : project : sources * : requirements *
class unit-test-target-class : typed-target ;
rule run
{
}
toolset.flags testing.run LAUNCHER <testing.launcher> ;
actions run
{
$(>) && touch $(<)
$(LAUNCHER) $(>) && touch $(<)
}

View File

@@ -8,6 +8,12 @@
import targets ;
import class : class new ;
import property ;
import feature ;
import toolset ;
# The feature which controls the name of program used to
# lanch test programs.
feature.feature testing.launcher : : optional free ;
rule unit-test-target-class ( name : project : sources * : requirements *
: default-build * )
@@ -34,13 +40,12 @@ rule unit-test-target-class ( name : project : sources * : requirements *
class unit-test-target-class : typed-target ;
rule run
{
}
toolset.flags testing.run LAUNCHER <testing.launcher> ;
actions run
{
$(>) && touch $(<)
$(LAUNCHER) $(>) && touch $(<)
}