| # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| if not bld.env['WITH_TESTS']: |
| # precompiled headers (if enabled) |
| headers=['boost-test.hpp'], |
| # core modules that can be shared between unit and integrated tests |
| target="boost-tests-base", |
| source=bld.path.ant_glob(['*.cpp'], excl='main.cpp'), |
| use='core-objects tests-base BOOST', |
| defines=['UNIT_TEST_CONFIG_PATH=\"%s/tmp-files/\"' % (bld.bldnode)], |
| bld(target='unit-tests-main', |
| use='tests-base boost-tests-base BOOST', |
| defines=['BOOST_TEST_MODULE=Unit Test']) |
| features='cxx cxxprogram', |
| source=bld.path.ant_glob(['unit-tests/*.cpp']), |
| use='core-objects adhoc chronoshare http_server chronoshare_gui unit-tests-main', |
| defines=['UNIT_TEST_CONFIG_PATH=\"%s/tmp-files/\"' % (bld.bldnode)], |
| bld.recurse('integrated-tests') |