From 1ea44258f8a49e0866e0d674079cfae9591fba73 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 28 Nov 2007 07:08:13 +0000 Subject: [PATCH] Add test for result status values of simple actions, i.e. empty actions. [SVN r41430] --- historic/jam/test/action_status.jam | 24 ++++++++++++++++++++++++ historic/jam/test/test.jam | 1 + 2 files changed, 25 insertions(+) create mode 100644 historic/jam/test/action_status.jam diff --git a/historic/jam/test/action_status.jam b/historic/jam/test/action_status.jam new file mode 100644 index 000000000..a54fb50d8 --- /dev/null +++ b/historic/jam/test/action_status.jam @@ -0,0 +1,24 @@ +#~ 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 \"actions status results\"... ; + + assert "" 0 : (==) : [ SHELL "$(ARGV[1]) -f action_status.jam -sBJAM_SUBTEST=1" : exit-status : no-output ] ; + assert "" 0 : (!=) : [ SHELL "$(ARGV[1]) -f action_status.jam -sBJAM_SUBTEST=1 -sACTION=invalid" : exit-status : no-output ] ; +} +else +{ + actions quietly .a. { $(ACTION) } + + rule .a. + { + DEPENDS $(<) : $(>) ; + } + + NOTFILE subtest ; + .a. subtest_a : subtest ; + DEPENDS all : subtest_a ; +} diff --git a/historic/jam/test/test.jam b/historic/jam/test/test.jam index 10a16116b..f050f849f 100644 --- a/historic/jam/test/test.jam +++ b/historic/jam/test/test.jam @@ -41,6 +41,7 @@ rule assert ( expected * : test ? : obtained * ) } } +include action_status.jam ; include actions_quietly.jam ; include builtin_shell.jam ; include builtin_w32_getregnames.jam ;