# Hamigaki Filesystem 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/filesystem for library home page.

subproject libs/filesystem/test ;

import testing ;

DEPENDS all : test ;

rule filesystem-test ( sources + : requirements * )
{
    return [
        run $(sources) <lib>../build/hamigaki_filesystem
        :
        :
        :
        <define>BOOST_ALL_NO_LIB=1
        <cw-8_3><*><define>BOOST_THREAD_USE_LIB=1
        <include>$(HAMIGAKI_ROOT)  <sysinclude>$(HAMIGAKI_ROOT)
        <include>$(BOOST_INCLUDE)  <sysinclude>$(BOOST_INCLUDE)
        <library-path>$(BOOST_LIBPATH)
        <threading>multi
        <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
        $(requirements)
    ] ;
}

test-suite filesystem :
    [ filesystem-test file_time_test.cpp : ]
    [ filesystem-test remove_all_test.cpp : ]
    [ filesystem-test status_test.cpp : ]
    ;
