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

Add test to check 'bjam -n'.

[SVN r38587]
This commit is contained in:
Rene Rivera
2007-08-11 00:32:25 +00:00
parent eda906f676
commit 1bd0bef046
2 changed files with 46 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
#~ Copyright 2007 Rene Rivera.
#~ Distributed under the Boost Software License, Version 1.0.
#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
if ! $(BJAM_SUBTEST)
{
ECHO --- Testing -n option... ;
assert "...found 4 targets...
...updating 2 targets...
n subtest_a
echo [subtest_a] 0
echo [subtest_a] 1
echo [subtest_a] 2
n subtest_b
echo [subtest_b] 0
echo [subtest_b] 1
echo [subtest_b] 2
...updated 2 targets...
" : (==) : [ SHELL "$(ARGV[1]) -f option_n.jam -sBJAM_SUBTEST=1 -n" ] ;
}
else
{
actions n
{
echo [$(<:B)] 0
echo [$(<:B)] 1
echo [$(<:B)] 2
}
rule n
{
DEPENDS $(<) : $(>) ;
}
NOTFILE subtest ;
n subtest_a : subtest ;
n subtest_b : subtest ;
DEPENDS all : subtest_a subtest_b ;
}

View File

@@ -1,4 +1,4 @@
#~ Copyright 2006 Rene Rivera.
#~ Copyright 2006-2007 Rene Rivera.
#~ Distributed under the Boost Software License, Version 1.0.
#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
@@ -43,6 +43,7 @@ rule assert ( expected * : test ? : obtained * )
include builtin_shell.jam ;
include builtin_w32_getregnames.jam ;
include option_n.jam ;
include parallel_actions.jam ;
include stress_var_expand.jam ;
include target_var.jam ;