From f72669f745a01c4089f906d9e4cef07fa32becec Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 28 Jan 2003 15:12:31 +0000 Subject: [PATCH] Added testing.launcher feature. For example, now unit tests can be run under valgrind. [SVN r17063] --- new/testing.jam | 13 +++++++++---- v2/tools/testing.jam | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/new/testing.jam b/new/testing.jam index c778b481e..30e1b32d9 100644 --- a/new/testing.jam +++ b/new/testing.jam @@ -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 ; + actions run { - $(>) && touch $(<) + $(LAUNCHER) $(>) && touch $(<) } diff --git a/v2/tools/testing.jam b/v2/tools/testing.jam index c778b481e..30e1b32d9 100644 --- a/v2/tools/testing.jam +++ b/v2/tools/testing.jam @@ -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 ; + actions run { - $(>) && touch $(<) + $(LAUNCHER) $(>) && touch $(<) }