Browse Source

waf: build tests

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2420 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.90
nedko 17 years ago
parent
commit
d2ac15c4d1
2 changed files with 21 additions and 0 deletions
  1. +20
    -0
      tests/wscript
  2. +1
    -0
      wscript

+ 20
- 0
tests/wscript View File

@@ -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

+ 1
- 0
wscript View File

@@ -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')

Loading…
Cancel
Save