OSDN Git Service

A test case source file was registered in the manual.
[ccunit/ccunit.git] / tests / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #    Copyright (C) 2003 TSUTSUMI Kikuo.
3 #    This file is part of the CCUnit Library.
4
5 #    The CCUnit Library is free software; you can redistribute it and/or
6 #    modify it under the terms of the GNU Lesser General Public License
7 #    as published by the Free Software Foundation; either version 2.1 of
8 #    the License, or (at your option) any later version.
9
10 #    The CCUnit Library is distributed in the hope that it will be
11 #    useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 #    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #    GNU Lesser General Public License for more details.
14
15 #    You should have received a copy of the GNU Lesser General Public
16 #    License along with the CCUnit Library; see the file COPYING.LESSER.
17 #    If not, write to the Free Software Foundation, Inc., 59 Temple
18 #    Place - Suite 330, Boston, MA 02111-1307, USA.  
19
20 # $Id$
21
22 check_PROGRAMS = runSuccess runFailure
23 runSuccess_SOURCES = runSuccess.c $(TESTSRCS)
24 runFailure_SOURCES = runFailure.c $(FAILSRCS)
25 nodist_runSuccess_SOURCES = suiteSuccess.c 
26 nodist_runFailure_SOURCES = suiteFailure.c
27
28 LIBCCUNIT=$(top_srcdir)/src/ccunit/libccunit.a
29 ## ls -1 test*.c | sed -e 's/^\(.*\)$/  \1 \\/' -e '$s/ \\$//'
30 TESTSRCS= \
31         testAssert.c \
32         testReadSuite.c \
33         testSuite.c
34
35 ## ls -1 fail*.c | sed -e 's/^\(.*\)$/  \1 \\/' -e '$s/ \\$//'
36 FAILSRCS= \
37         failAssert.c
38
39 runSuccess_LDADD = -lccunit
40 runSuccess_DEPENDENCIES = $(LIBCCUNIT)
41
42 runFailure_LDADD = -lccunit
43 runFailure_DEPENDENCIES = $(LIBCCUNIT)
44
45 EXTRA_DIST=
46
47 AM_CPPFLAGS=-I$(top_srcdir)/src
48 AM_CFLAGS=-Wall -Werror
49 AM_LDFLAGS=-L$(top_srcdir)/src/ccunit
50
51 TESTS = runSuccess $(XFAIL_TESTS)
52 XFAIL_TESTS = runFailure
53
54 CLEANFILES=*~ .*~ ./\#*\# *.log suiteSuccess.c suiteFailure.c
55
56 MAKESUITE=$(top_srcdir)/src/tools/ccunit_makeSuite
57
58 suiteSuccess.c suiteFailure.c:: $(MAKESUITE)
59 suiteSuccess.c:: $(TESTSRCS)
60         $(MAKESUITE) -o $@ -v $^ /dev/null
61 suiteFailure.c:: $(FAILSRCS)
62         $(MAKESUITE) -o $@ -v $^ /dev/null