cleanups; use sys_clone()
[util-vserver.git] / util-vserver / 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_check_passive_PRGS =      src/testsuite/rpm-fake-test
21
22
23 src_testsuite_check_PRGS =              $(src_testsuite_check_passive_PRGS) \
24                                         $(src_testsuite_check_active_PRGS)
25
26 if ENSC_HAVE_C99_COMPILER
27 src_testsuite_check_src_C99_SCRPTS =    src/testsuite/vunify-test.sh
28 else
29 src_testsuite_check_src_C99_SCRPTS =
30 endif
31
32 src_testsuite_check_src_SCRPTS =        $(src_testsuite_check_src_C99_SCRPTS)
33 src_testsuite_check_gen_SCRPTS =
34
35 src_testsuite_check_SCRPTS =            $(src_testsuite_check_src_SCRPTS) \
36                                         $(src_testsuite_check_gen_SCRPTS)
37
38 src_testsuite_TSTS =                    $(src_testsuite_check_active_PRGS) \
39                                         $(src_testsuite_check_SCRPTS)
40
41 src_testsuite_XTRAS =                   $(src_testsuite_check_src_SCRPTS)
42
43
44 src_testsuite_rpm_fake_test_SOURCES =   src/testsuite/rpm-fake-test.c
45
46 src_testsuite_vunify_functest_SOURCES = src/testsuite/vunify-functest.c \
47                                         src/vunify-matchlist.c
48 src_testsuite_vunify_functest_CPPFLAGS= $(AM_CPPFLAGS) $(src_testsuite_CPPFLAGS)
49
50
51 src_testsuite_chcontext_test_SOURCES =  src/testsuite/chcontext-test.c \
52                                         src/util-exitlikeprocess.c
53 src_testsuite_chcontext_test_LDADD =    lib/libvserver.la
54
55 src_testsuite_CPPFLAGS =                -I $(top_srcdir)/src -D ENSC_TESTSUITE
56
57
58 clean-local:            clean-testsuite
59
60 clean-testsuite:
61                         rm -rf src/testsuite/.libs src/testsuite/_libs