Consistent test source file naming (not the Ardour convention though, maybe should...
[ardour.git] / libs / ardour / wscript
index 5176ac6d00c96c2cdaac3a9e91ac72d4dc1d2817..57b2a6cdeb307c48ffbea3f5a168ab293c5da117 100644 (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/InterpolationTest.cpp
+                       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()