Skeleton tests for BBT_Time.

git-svn-id: svn://localhost/ardour2/branches/3.0@5942 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-10-27 16:15:12 +00:00
parent a2e73bc5f7
commit c35eae34c3

View File

@ -312,13 +312,14 @@ def build(bld):
lang = os.path.basename (mo).replace ('.mo', '')
bld.install_as (os.path.join (bld.env['PREFIX'], 'share', 'locale', lang, 'LC_MESSAGES', APPNAME + '.mo'), mo)
if bld.env['HAVE_CPPUNIT']:
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
# Unit tests
testobj = bld.new_task_gen('cxx', 'program')
testobj.source = '''
interpolation.cc
tests/interpolation-test.cc
tests/testrunner.cpp
test/BBTTest.cpp
test/interpolation-test.cc
test/testrunner.cpp
'''
testobj.includes = obj.includes + ['../pbd/']
testobj.uselib = 'CPPUNIT SIGCPP JACK GLIBMM SAMPLERATE'
@ -326,7 +327,6 @@ def build(bld):
testobj.target = 'run-tests'
testobj.install_path = ''
def shutdown():
autowaf.shutdown()