| # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| if not bld.env.WITH_TESTS: |
| tmpdir = bld.bldnode.make_node('tmp-files') |
| tmpdir.make_node('anchors').mkdir() |
| name='test-validator-conf', |
| source='../validator.conf.sample.in', |
| target=tmpdir.make_node('validator.conf'), |
| ANCHORPATH='\"anchors/root.cert\"') |
| target='unit-tests-main', |
| tmpdir_define = 'UNIT_TESTS_TMPDIR="%s"' % tmpdir |
| source=bld.path.ant_glob('**/*.cpp', excl=['main.cpp']), |
| use='ndns-objects unit-tests-main', |