# Hamigaki Bjam Library Test Jamfile

# Copyright Takeshi Mouri 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/bjam for library home page.

subproject libs/bjam/test ;

import testing ;

DEPENDS all : test ;

rule bjam-test ( sources + : requirements * : args * )
{
    return [
        run
        $(sources)
        <lib>../build/hamigaki_bjam
        <lib>../../process/build/hamigaki_process
        : $(args)
        :
        :
        <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
        find-boost-unit_test_framework-lib
        find-boost-filesystem-lib
        find-boost-regex-lib
        $(requirements)
    ] ;
}

test-suite bjam :
    [ bjam-test arg_p_test.cpp : ]
    [ bjam-test bjam_test.cpp : : $(HAMIGAKI_ROOT) ]
    [ bjam-test builtin_rules_test.cpp : ]
    [ bjam-test expand_variable_test.cpp : ]
    [ bjam-test expression_test.cpp : ]
    [ bjam-test get_variable_values_test.cpp : ]
    [ bjam-test glob_test.cpp : : $(HAMIGAKI_ROOT) ]
    [ bjam-test keyword_p_test.cpp : ]
    [ bjam-test module_test.cpp : ]
    [ bjam-test non_punct_p_test.cpp : ]
    [ bjam-test path_test.cpp : ]
    [ bjam-test string_p_test.cpp : ]
    ;
