1 ## $Id$ --*- makefile -*--
3 ## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; version 2 of the License.
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 src_testsuite_check_active_PRGS = src/testsuite/vunify-functest \
19 src/testsuite/chcontext-test \
20 src/testsuite/chbind-test
21 src_testsuite_check_passive_PRGS = src/testsuite/rpm-fake-test
24 check_PROGRAMS += $(src_testsuite_check_passive_PRGS) \
25 $(src_testsuite_check_active_PRGS)
27 if ENSC_HAVE_C99_COMPILER
28 src_testsuite_check_src_C99_SCRPTS = src/testsuite/vunify-test.sh
30 src_testsuite_check_src_C99_SCRPTS =
33 src_testsuite_check_src_SCRPTS = $(src_testsuite_check_src_C99_SCRPTS)
34 src_testsuite_check_gen_SCRPTS =
36 check_SCRIPTS += $(src_testsuite_check_src_SCRPTS) \
37 $(src_testsuite_check_gen_SCRPTS)
39 TESTS += $(src_testsuite_check_active_PRGS) \
40 $(src_testsuite_check_src_SCRPTS) \
41 $(src_testsuite_check_gen_SCRPTS)
43 EXTRA_DIST += $(src_testsuite_check_src_SCRPTS)
46 src_testsuite_rpm_fake_test_SOURCES = src/testsuite/rpm-fake-test.c
48 src_testsuite_vunify_functest_SOURCES = src/testsuite/vunify-functest.c
49 src_testsuite_vunify_functest_LDADD = lib_internal/libinternal.a
50 src_testsuite_vunify_functest_CPPFLAGS= $(AM_CPPFLAGS) $(src_testsuite_CPPFLAGS)
53 src_testsuite_chcontext_test_SOURCES = src/testsuite/chcontext-test.c
54 src_testsuite_chcontext_test_LDADD = lib/libvserver.la lib_internal/libinternal.a
57 src_testsuite_chbind_test_SOURCES = src/testsuite/chbind-test.c
58 src_testsuite_chbind_test_LDADD = lib/libvserver.la
61 src_testsuite_CPPFLAGS = -I $(top_srcdir)/src -D ENSC_TESTSUITE
64 clean-local: clean-testsuite
67 rm -rf src/testsuite/.libs src/testsuite/_libs