| 1 |
# |
|---|
| 2 |
# Copyright (C) 2007 Arnold Krille |
|---|
| 3 |
# Copyright (C) 2007 Pieter Palmers |
|---|
| 4 |
# |
|---|
| 5 |
# This file originates from FFADO (www.ffado.org) |
|---|
| 6 |
# |
|---|
| 7 |
# This program is free software: you can redistribute it and/or modify |
|---|
| 8 |
# it under the terms of the GNU General Public License as published by |
|---|
| 9 |
# the Free Software Foundation, either version 3 of the License, or |
|---|
| 10 |
# (at your option) any later version. |
|---|
| 11 |
# |
|---|
| 12 |
# This program is distributed in the hope that it will be useful, |
|---|
| 13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 |
# GNU General Public License for more details. |
|---|
| 16 |
# |
|---|
| 17 |
# You should have received a copy of the GNU General Public License |
|---|
| 18 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 19 |
# |
|---|
| 20 |
|
|---|
| 21 |
import os |
|---|
| 22 |
from string import Template |
|---|
| 23 |
|
|---|
| 24 |
Import( 'env' ) |
|---|
| 25 |
|
|---|
| 26 |
# paths where include files can be found |
|---|
| 27 |
env.AppendUnique( CPPPATH=["#/", "#/common"] ) |
|---|
| 28 |
|
|---|
| 29 |
# |
|---|
| 30 |
# Define the source files |
|---|
| 31 |
# |
|---|
| 32 |
|
|---|
| 33 |
test_programs = { |
|---|
| 34 |
"synchroClient" : "testSynchroClient.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp", |
|---|
| 35 |
"synchroServer" : "testSynchroServer.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp", |
|---|
| 36 |
"synchroServerClient" : "testSynchroServerClient.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp", |
|---|
| 37 |
"testSem" : "testSem.cpp #/common/JackPosixSemaphore.cpp #/common/JackPosixThread.cpp #/common/JackError.c #/common/JackFifo.cpp", |
|---|
| 38 |
"jack_test" : "jack_test.cpp", |
|---|
| 39 |
} |
|---|
| 40 |
|
|---|
| 41 |
# |
|---|
| 42 |
# Start building |
|---|
| 43 |
# |
|---|
| 44 |
|
|---|
| 45 |
# build the tests |
|---|
| 46 |
testenv = env.Copy() |
|---|
| 47 |
testenv.PrependUnique( LIBPATH=env['build_base'] ) |
|---|
| 48 |
testenv.PrependUnique( LIBS="jackmp" ) |
|---|
| 49 |
|
|---|
| 50 |
for test_program in test_programs.keys(): |
|---|
| 51 |
testenv.Program(target=test_program, |
|---|
| 52 |
source=env.Split( test_programs[test_program] ) ) |
|---|