diff --git a/historic/jam/test/option_n.jam b/historic/jam/test/option_n.jam new file mode 100644 index 000000000..5c5ace211 --- /dev/null +++ b/historic/jam/test/option_n.jam @@ -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 ; +} diff --git a/historic/jam/test/test.jam b/historic/jam/test/test.jam index 18c373909..b8e91799f 100644 --- a/historic/jam/test/test.jam +++ b/historic/jam/test/test.jam @@ -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 ;