| # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| from waflib import Utils, Context |
| if not bld.env['WITH_TESTS']: |
| dst = bld.bldnode.make_node("conf-test/anchors") |
| name='test-validator-conf', |
| source='../validator.conf.sample.in', |
| target='../conf-test/validator.conf', |
| ANCHORPATH='\"anchors/root.cert\"', |
| source='../log4cxx.properties.sample.in', |
| target='../conf-test/log4cxx.properties.sample', |
| target='unit-tests-main', |
| defines=['BOOST_TEST_MODULE=NDNS Unit Tests', |
| 'TEST_CONFIG_PATH=\"%s/conf-test\"' %(bld.bldnode)], |
| unit_tests = bld.program( |
| features='cxx cxxprogram', |
| source=bld.path.ant_glob(['**/*.cpp'], excl=['main.cpp']), |
| use='ndns-objects unit-tests-main BOOST', |
| defines='TEST_CONFIG_PATH=\"%s/conf-test\"' %(bld.bldnode) |