1 ## Process this fill with automake to generate Makefile.in
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 \
26 LDADD += $(top_builddir)/libltdl/libltdlc.la
29 LDADD += $(top_builddir)/libbase/libltdlc.la
32 # AM_CPPFLAGS isn't right here since per-program *_CPPFLAGS override global
35 -I$(top_srcdir)/libbase \
36 -I$(top_srcdir)/libcore \
37 -I$(top_srcdir)/testsuite \
43 abs_builddir=`(cd $(top_builddir)/testsuite/libbase; pwd)`
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"'
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
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); \
104 echo "WARNING: could not find \`runtest'" 1>&2; \
105 for i in "$(TEST_CASES)"; do \
110 site-update: site.exp
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