Update of /cvsroot/boost/boost/tools/build/v2/tools
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20633
Modified Files:
testing.jam
Log Message:
Implement automatic removal of test executables
Index: testing.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/testing.jam,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- testing.jam 5 Nov 2006 07:13:39 -0000 1.46
+++ testing.jam 15 Nov 2006 19:04:46 -0000 1.47
@@ -333,6 +333,11 @@
}
}
+local argv = [ modules.peek : ARGV ] ;
+if --preserve-test-targets in $(argv)
+{
+ preserve-test-targets = true ;
+}
toolset.flags testing.capture-output ARGS <testing.arg> ;
toolset.flags testing.capture-output INPUT_FILES <testing.input-file> ;
@@ -353,8 +358,14 @@
# before target is created. Therefore, they are bound using SEARCH setting
# on them and not LOCATE setting of $(target), as in other case (due to
jam bug).
DEPENDS $(target) : [ on $(target) return $(INPUT_FILES) ] ;
-
+
run-path-setup $(target) : $(source) : $(properties) ;
+
+ if ! $(preserve-test-targets)
+ {
+ TEMPORARY $(sources) ;
+ RmTemps $(target) : $(source) ;
+ }
}
@@ -396,6 +407,9 @@
VERBOSE_TEST = 0 ;
}
+
+RM = [ common.rm-command ] ;
+
actions capture-output bind INPUT_FILES output-file
{
$(PATH_SETUP)
@@ -414,10 +428,15 @@
echo ====== BEGIN OUTPUT ======
$(CATENATE) $(output-file)
echo ====== END OUTPUT ======
- $(ENDIF)
+ $(ENDIF)
exit $(STATUS)
}
+actions quietly updated piecemeal together RmTemps
+{
+ $(RM) "$(>)"
+}
+
MAKE_FILE = [ common.file-creation-command ] ;
toolset.flags testing.unit-test LAUNCHER <testing.launcher> ;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs