Update of /cvsroot/boost/boost/tools/jam/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26107

Modified Files:
      Tag: Boost_Jam_994
        test.jam 
Added Files:
      Tag: Boost_Jam_994
        parallel_actions.jam 
Log Message:
Add test for -jN actions.

--- NEW FILE: parallel_actions.jam ---
#~ Copyright 2006 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 -jN parallel execution of actions... ;

    assert "...found 12 targets...
...updating 8 targets...
sleeper a0.txt
[a0] 0
[a0] 1
[a0] 2
sleeper a1.txt
[a1] 0
[a1] 1
[a1] 2
sleeper a2.txt
[a2] 0
[a2] 1
[a2] 2
sleeper a3.txt
[a3] 0
[a3] 1
[a3] 2
sleeper b0.txt
[b0] 0
[b0] 1
[b0] 2
sleeper b1.txt
[b1] 0
[b1] 1
[b1] 2
sleeper b2.txt
[b2] 0
[b2] 1
[b2] 2
sleeper b3.txt
[b3] 0
[b3] 1
[b3] 2
...updated 8 targets...
" : (==) : [ SHELL "$(ARGV[1]) -f parallel_actions.jam -sBJAM_SUBTEST=1 -j4" ] ;
}
else
{
    if $(NT)
    {
        actions sleeper
        {
echo "[$(<:B)] 0"
sleep 1
echo "[$(<:B)] 1"
sleep 1
echo "[$(<:B)] 2"
        }
    }
    else
    {
        actions sleeper
        {
echo "[$(<:B)] 0"
sleep 1
echo "[$(<:B)] 1"
sleep 1
echo "[$(<:B)] 2"
        }
    }
    
    rule sleeper
    {
        DEPENDS $(<) : $(>) ;
    }
    
    NOTFILE front ;
    sleeper a0.txt : front ;
    sleeper a1.txt : front ;
    sleeper a2.txt : front ;
    sleeper a3.txt : front ;
    NOTFILE choke ;
    DEPENDS choke : a0.txt a1.txt a2.txt a3.txt ;
    sleeper b0.txt : choke ;
    sleeper b1.txt : choke ;
    sleeper b2.txt : choke ;
    sleeper b3.txt : choke ;
    DEPENDS bottom : b0.txt b1.txt b2.txt b3.txt ;
    DEPENDS all : bottom ;
}

Index: test.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/jam/test/test.jam,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- test.jam    27 Sep 2006 14:52:19 -0000      1.2
+++ test.jam    31 May 2007 01:11:03 -0000      1.2.2.1
@@ -43,6 +43,7 @@
 
 include builtin_shell.jam ;
 include builtin_w32_getregnames.jam ;
+include parallel_actions.jam ;
 include stress_var_expand.jam ;
 include target_var.jam ;
 include var_expand.jam ;


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to