cleanup old cvs cruft; add mkrelease script; use svn2cl instead of cvs2cl
[util-vserver.git] / src / testsuite / Makefile-files
1 ## $Id$         --*- makefile -*--
2
3 ## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
4 ##  
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.
8 ##  
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.
13 ##  
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.
17
18 src_testsuite_check_active_PRGS =       src/testsuite/vunify-functest \
19                                         src/testsuite/chcontext-test \
20                                         src/testsuite/chbind-test
21
22 src_testsuite_check_passive_PRGS =      src/testsuite/rpm-fake-test
23
24 if ENSC_HAVE_C99_COMPILER
25 if ENSC_HAVE_BEECRYPT
26 src_testsuite_check_passive_PRGS +=     src/testsuite/hashcalc          \
27                                         src/testsuite/hashcalc-plain
28 endif
29 endif
30
31 check_PROGRAMS +=                       $(src_testsuite_check_passive_PRGS) \
32                                         $(src_testsuite_check_active_PRGS)
33
34 if ENSC_HAVE_C99_COMPILER
35 src_testsuite_check_src_C99_SCRPTS =    src/testsuite/vunify-test.sh
36 if ENSC_HAVE_BEECRYPT
37 src_testsuite_check_src_C99_SCRPTS +=   src/testsuite/hashcalc-plain.sh         \
38                                         src/testsuite/hashcalc.sh
39 endif
40 else
41 src_testsuite_check_src_C99_SCRPTS =
42 endif
43
44 src_testsuite_check_src_SCRPTS =        $(src_testsuite_check_src_C99_SCRPTS)
45 src_testsuite_check_gen_SCRPTS =
46
47 check_SCRIPTS +=                        $(src_testsuite_check_src_SCRPTS) \
48                                         $(src_testsuite_check_gen_SCRPTS)
49
50 TESTS +=                                $(src_testsuite_check_active_PRGS) \
51                                         $(src_testsuite_check_src_SCRPTS) \
52                                         $(src_testsuite_check_gen_SCRPTS)
53
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
59
60 src_testsuite_rpm_fake_test_SOURCES =   src/testsuite/rpm-fake-test.c
61
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)
65
66
67 src_testsuite_chcontext_test_SOURCES =  src/testsuite/chcontext-test.c
68 src_testsuite_chcontext_test_LDADD =    lib/libvserver.la $(LIBINTERNAL)
69
70
71 src_testsuite_chbind_test_SOURCES =     src/testsuite/chbind-test.c
72 src_testsuite_chbind_test_LDADD =       lib/libvserver.la
73
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)
79
80 src_testsuite_hashcalc_plain_LDADD =    $(LIBINTERNAL) $(LIBENSCVECTOR) -lbeecrypt $(VSERVER_LDADDS)
81 src_testsuite_hashcalc_plain_LDFLAGS =  $(VSERVER_LDFLGS)
82 else
83 src_testsuite_hashcalc_LDADD =          $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) -lbeecrypt
84 src_testsuite_hashcalc_LDFLAGS =
85
86 src_testsuite_hashcalc_plain_LDADD =    $(LIBINTERNAL_GLIBC) $(LIBENSCVECTOR_GLIBC) $(LIBVSERVER_GLIBC) -lbeecrypt
87 src_testsuite_hashcalc_plain_LDFLAGS =
88 endif
89
90 src_testsuite_CPPFLAGS =                -I $(top_srcdir)/src -D ENSC_TESTSUITE
91
92
93 clean-local:            clean-testsuite
94
95 clean-testsuite:
96                         rm -rf src/testsuite/.libs src/testsuite/_libs