# Hamigaki Uuid Library Test Jamfile

#  Copyright Takeshi Mouri 2006.
#  Use, modification, and distribution are subject to 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/uuid for library home page.

subproject libs/uuid/test ;

import testing ;

DEPENDS all : test ;

{

rule uuid-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
        <mingw><*><find-library>ole32
        find-boost-unit_test_framework-lib
        $(requirements)
    ] ;
}

test-suite uuid :
    [ uuid-test uuid_test.cpp : ]
    ;

rule intialize_suite {
    TEST_SUITE =
      [ uuid-test uuid_test.cpp : ]
      ;

    if $(NT)
    {
        TEST_SUITE +=
            [ uuid-test guid_cvt_test.cpp : ]
            ;
    }
}

intialize_suite ;

test-suite "uuid"
    : $(TEST_SUITE)
    ;

}
