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
22 src_testsuite_check_passive_PRGS = src/testsuite/rpm-fake-test
24 if ENSC_HAVE_C99_COMPILER
26 src_testsuite_check_passive_PRGS += src/testsuite/hashcalc \
27 src/testsuite/hashcalc-plain
31 check_PROGRAMS += $(src_testsuite_check_passive_PRGS) \
32 $(src_testsuite_check_active_PRGS)
34 if ENSC_HAVE_C99_COMPILER
35 src_testsuite_check_src_C99_SCRPTS = src/testsuite/vunify-test.sh
37 src_testsuite_check_src_C99_SCRPTS += src/testsuite/hashcalc-plain.sh \
38 src/testsuite/hashcalc.sh
41 src_testsuite_check_src_C99_SCRPTS =
44 src_testsuite_check_src_SCRPTS = $(src_testsuite_check_src_C99_SCRPTS)
45 src_testsuite_check_gen_SCRPTS =
47 check_SCRIPTS += $(src_testsuite_check_src_SCRPTS) \
48 $(src_testsuite_check_gen_SCRPTS)
50 TESTS += $(src_testsuite_check_active_PRGS) \
51 $(src_testsuite_check_src_SCRPTS) \
52 $(src_testsuite_check_gen_SCRPTS)
54 EXTRA_DIST += $(src_testsuite_check_src_SCRPTS) \
55 src/testsuite/vunify-test.sh \
56 src/testsuite/hashcalc.sh \
57 src/testsuite/hashcalc-plain.sh \
58 src/testsuite/vwait-test.sh
60 src_testsuite_rpm_fake_test_SOURCES = src/testsuite/rpm-fake-test.c
62 src_testsuite_vunify_functest_SOURCES = src/testsuite/vunify-functest.c
63 src_testsuite_vunify_functest_LDADD = $(LIBINTERNAL)
64 src_testsuite_vunify_functest_CPPFLAGS= $(AM_CPPFLAGS) $(src_testsuite_CPPFLAGS)
67 src_testsuite_chcontext_test_SOURCES = src/testsuite/chcontext-test.c
68 src_testsuite_chcontext_test_LDADD = lib/libvserver.la $(LIBINTERNAL)
71 src_testsuite_chbind_test_SOURCES = src/testsuite/chbind-test.c
72 src_testsuite_chbind_test_LDADD = lib/libvserver.la
74 src_testsuite_hashcalc_SOURCES = src/testsuite/hashcalc.c
75 src_testsuite_hashcalc_plain_SOURCES = src/testsuite/hashcalc-plain.c
76 if ENSC_CAN_BEECRYPT_WITH_DIETLIBC
77 src_testsuite_hashcalc_LDADD = $(LIBINTERNAL) $(LIBENSCVECTOR) -lbeecrypt $(VSERVER_LDADDS)
78 src_testsuite_hashcalc_LDFLAGS = $(VSERVER_LDFLGS)
80 src_testsuite_hashcalc_plain_LDADD = $(LIBINTERNAL) $(LIBENSCVECTOR) -lbeecrypt $(VSERVER_LDADDS)
81 src_testsuite_hashcalc_plain_LDFLAGS = $(VSERVER_LDFLGS)
83 src_testsuite_hashcalc_LDADD = $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) -lbeecrypt
84 src_testsuite_hashcalc_LDFLAGS =
86 src_testsuite_hashcalc_plain_LDADD = $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) -lbeecrypt
87 src_testsuite_hashcalc_plain_LDFLAGS =
90 src_testsuite_CPPFLAGS = -I $(top_srcdir)/src -D ENSC_TESTSUITE
93 clean-local: clean-testsuite
96 rm -rf src/testsuite/.libs src/testsuite/_libs