Minor change to add argument checking

[SVN r11752]
This commit is contained in:
Dave Abrahams 2001-11-21 02:15:32 +00:00
parent d3cc059e54
commit f133a25b50

View file

@ -131,8 +131,8 @@ rule run-test # target : sources : requirements
# The .test file goes with the other subvariant targets
# normalization is a hack to get the slashes going the right way on Windoze
local normalized-locate = [ FDirName [ split-path $(LOCATE_TARGET) ] ] ;
MakeLocate $(<) : $(normalized-locate) ;
local LOCATE_TARGET = [ FDirName [ split-path $(LOCATE_TARGET) ] ] ;
MakeLocate $(<) : $(LOCATE_TARGET) ;
DEPENDS $(<) : $(executable) $(gRUN_TEST_INPUT_FILES) ;
INPUT_FILES on $(<) = $(gRUN_TEST_INPUT_FILES) ;
@ -144,6 +144,9 @@ rule run-test # target : sources : requirements
ALWAYS $(<) ;
}
}
# The rule is just used for argument checking
rule capture-run-output ( target : executable + ) { }
actions capture-run-output bind INPUT_FILES
{
$(>) $(ARGS) $(INPUT_FILES) > $(<:S=.error)