blob: fa36e78de97ef27a9d4c78a9e67643072314884f [file] [log] [blame]
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
from waflib import Utils, Context
top = '..'
def build(bld):
if not bld.env['WITH_TESTS']:
return
dst = bld.bldnode.make_node("conf-test/anchors")
dst.mkdir()
bld(features = "subst",
name = 'test-validator-conf',
source = '../validator.conf.sample.in',
target = '../conf-test/validator.conf',
use = 'validator-sample',
ANCHORPATH='\"anchors/root.cert\"',
RELATION='is-prefix-of',
)
bld(features = "subst",
name = 'test-logger-conf',
source = '../log4cxx.properties.sample.in',
target = '../conf-test/log4cxx.properties.sample',
is_copy = True,
use = 'log4cxx-sample',
)
unit_tests = bld.program(
target='../unit-tests',
features='cxx cxxprogram',
source=bld.path.ant_glob(['**/*.cpp']),
use='ndns-objects',
install_path=None,
defines='TEST_CONFIG_PATH=\"%s/conf-test\"' %(bld.bldnode)
)