Rename TCXXRc test... I never find it otherwise
[gnash.git] / testsuite / libbase.all / Makefile.am
blob56bc3258288bc7d764ce2d51e20f4dc2b6579651
1 ## Process this fill with automake to generate Makefile.in
2
3 #   Copyright (C) 2005, 2006,2007, 2008, 2009, 2010 Free Software Foundation, Inc.
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; either version 3 of the License, or
8 #   (at your option) any later version.
10 #   This program is distributed in the hope that it will be useful,
11 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #   GNU General Public License for more details.
15 #   You should have received a copy of the GNU General Public License
16 #   along with this program; if not, write to the Free Software
17 #   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19 AUTOMAKE_OPTIONS = dejagnu
21 LDADD = $(top_builddir)/libbase/libgnashbase.la \
22         $(LIBINTL)
25 if LIBLTDL2
26 LDADD  += $(top_builddir)/libltdl/libltdlc.la
27 endif
28 if LIBLTDL1
29 LDADD += $(top_builddir)/libbase/libltdlc.la
30 endif
32 # AM_CPPFLAGS isn't right here since per-program *_CPPFLAGS override global
33 # AM_CPPFLAGS
34 INCLUDES = \
35         -I$(top_srcdir)/libbase \
36         -I$(top_srcdir)/libcore  \
37         -I$(top_srcdir)/testsuite \
38         $(MING_CFLAGS) \
39         $(BOOST_CFLAGS) \
40         $(DEJAGNU_CFLAGS) \
41         $(NULL)
43 abs_builddir=`(cd $(top_builddir)/testsuite/libbase; pwd)`
45 CLEANFILES = \
46         testrun.sum \
47         testrun.log \
48         gnash-dbg.log \
49         site.exp.bak \
50         NoSeekFileTestCache \
51         $(NULL)
53 check_PROGRAMS = \
54         NoSeekFileTest \
55         URLTest \
56         RcTest \
57         IntTypesTest \
58         Point2dTest \
59         snappingrangetest \
60         Range2dTest \
61         string_tableTest \
62         $(NULL)
64 #if CURL
65 ## This test needs an http server running to be useful
66 #check_PROGRAMS += CurlStreamTest
67 #CurlStreamTest_SOURCES = CurlStreamTest.cpp
68 #CurlStreamTest_CPPFLAGS = '-DINPUT="$(srcdir)/CurlStreamTest.cpp"'
69 #endif
71 NoSeekFileTest_SOURCES = NoSeekFileTest.cpp
72 NoSeekFileTest_CPPFLAGS = '-DINPUT="$(srcdir)/NoSeekFileTest.cpp"'
74 URLTest_SOURCES = URLTest.cpp
75 URLTest_CPPFLAGS = '-DBUILDDIR="$(abs_builddir)"'
77 RcTest_SOURCES = RcTest.cpp
78 RcTest_CPPFLAGS = -DSRCDIR="$(srcdir)"
80 IntTypesTest_SOURCES = IntTypesTest.cpp
81 IntTypesTest_CPPFLAGS = -DSRCDIR="$(srcdir)"
83 # Test the Memory class
84 #memtest_SOURCES = memtest.cpp
86 Point2dTest_SOURCES = Point2dTest.cpp
87 Range2dTest_SOURCES = Range2dTest.cpp
88 snappingrangetest_SOURCES = snappingrangetest.cpp
90 string_tableTest_SOURCES = string_tableTest.cpp
91 string_tableTest_CPPFLAGS = -DSRCDIR="$(srcdir)"
92 string_tableTest_LDFLAGS = $(BOOST_LIBS)
94 TEST_DRIVERS = ../simple.exp
95 TEST_CASES = \
96         $(check_PROGRAMS) \
97         $(NULL)
99 check-DEJAGNU: site-update $(TEST_CASES)
100         @runtest=$(RUNTEST); \
101         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
102             $$runtest $(RUNTESTFLAGS) $(TEST_DRIVERS); \
103         else \
104           echo "WARNING: could not find \`runtest'" 1>&2; \
105           for i in "$(TEST_CASES)"; do \
106             $(SHELL) $$i; \
107           done; \
108         fi
110 site-update: site.exp
111         @rm -fr site.exp.bak
112         @cp site.exp site.exp.bak
113         @sed -e '/testcases/d' site.exp.bak > site.exp
114         @echo "# This is a list of the pre-compiled testcases" >> site.exp
115         @echo "set testcases \"$(TEST_CASES)\"" >> site.exp