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