diff --git a/tests/wscript b/tests/wscript new file mode 100644 index 00000000..2fb0e428 --- /dev/null +++ b/tests/wscript @@ -0,0 +1,20 @@ +#! /usr/bin/env python +# encoding: utf-8 + +test_programs = { + 'synchroClient': ['testSynchroClient.cpp'], + 'synchroServer': ['testSynchroServer.cpp'], + 'synchroServerClient': ['testSynchroServerClient.cpp'], + 'testSem': ['testSem.cpp'], + 'jack_test': ['jack_test.cpp'], + } + +def build(bld): + for test_program, test_program_sources in test_programs.items(): + prog = bld.create_obj('cpp', 'program') + prog.features.append('cc') + prog.includes = ['../common/jack', '../common'] + prog.source = test_program_sources + prog.uselib = 'RT' + prog.uselib_local = 'clientlib' + prog.target = test_program diff --git a/wscript b/wscript index aad4c8ac..c9764090 100644 --- a/wscript +++ b/wscript @@ -84,3 +84,4 @@ def build(bld): if bld.env()['BUILD_JACKDBUS'] == True: bld.add_subdirs('linux/dbus') bld.add_subdirs('example-clients') + bld.add_subdirs('tests')