# Hamigaki Coroutine Library Test Jamfile

# Copyright Takeshi Mouri 2006, 2007.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

# See http://hamigaki.sourceforge.jp/libs/coroutine for library home page.

subproject libs/coroutine/test ;

import testing ;

DEPENDS all : test ;

rule coroutine-test ( sources + : requirements * )
{
    return [
        run $(sources)
        :
        :
        :
        <define>BOOST_ALL_NO_LIB=1
        <include>$(HAMIGAKI_ROOT)  <sysinclude>$(HAMIGAKI_ROOT)
        <include>$(BOOST_INCLUDE)  <sysinclude>$(BOOST_INCLUDE)
        <library-path>$(BOOST_LIBPATH)
        <vc-8_0><*><cflags>-wd4996
        <vc-8_0><*><cflags>-wd4819
        <vc-8_0><*><linkflags>-INCREMENTAL:NO
        <vc-7_1><*><linkflags>-INCREMENTAL:NO
        [ unless $(NT) : <threading>multi ]
        find-boost-unit_test_framework-lib
        $(requirements)
    ] ;
}

test-suite coroutine :
    [ coroutine-test generator_test.cpp : <test-info>always_show_run_output ]
    [ coroutine-test coro_config_test.cpp : <test-info>always_show_run_output ]
    [ coroutine-test coro_copy_test.cpp ]
    [ coroutine-test coroutine_test.cpp : <test-info>always_show_run_output ]
    [ coroutine-test processor_test.cpp : <test-info>always_show_run_output ]
    [ coroutine-test yield_to_test.cpp : <test-info>always_show_run_output ]
    [ coroutine-test yield_to_arg_test.cpp : <test-info>always_show_run_output ]
    [ coroutine-test yield_to_res_test.cpp : <test-info>always_show_run_output ]
    ;
