From d2ac15c4d1fd1eacbd3a687a7e9913e1e5a303fe Mon Sep 17 00:00:00 2001 From: nedko Date: Mon, 2 Jun 2008 19:20:24 +0000 Subject: [PATCH] waf: build tests git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2420 0c269be4-1314-0410-8aa9-9f06e86f4224 --- tests/wscript | 20 ++++++++++++++++++++ wscript | 1 + 2 files changed, 21 insertions(+) create mode 100644 tests/wscript 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')