3 # This file is part of project GEOS (http://trac.osgeo.org/geos/)
6 #top_srcdir=@top_srcdir@
7 #top_builddir=@top_builddir@
11 CLEANFILES = testrunner
13 EXTRA_DIST = testrunner.sh CMakeLists.txt
15 SAFE_XMLTESTS=$(srcdir)/tests/testLeaksBig.xml \
16 $(srcdir)/tests/split.xml \
17 $(srcdir)/tests/hexwkb.xml \
18 $(srcdir)/tests/test.xml \
19 $(srcdir)/tests/linemerge.xml \
20 $(srcdir)/tests/TestIsValid.xml \
21 $(srcdir)/tests/robustness.xml \
22 $(srcdir)/tests/buffer.xml \
23 $(srcdir)/tests/singlesidedbuffer.xml \
24 $(srcdir)/tests/ticket/bug176.xml \
25 $(srcdir)/tests/ticket/bug188.xml \
26 $(srcdir)/tests/ticket/bug244.xml \
27 $(srcdir)/tests/ticket/bug275.xml \
28 $(srcdir)/tests/ticket/bug350.xml \
29 $(srcdir)/tests/ticket/bug356.xml \
30 $(srcdir)/tests/ticket/bug358.xml \
31 $(srcdir)/tests/ticket/bug360.xml \
32 $(srcdir)/tests/ticket/bug366.xml \
33 $(srcdir)/tests/ticket/bug392.xml \
34 $(srcdir)/tests/ticket/bug398.xml \
35 $(srcdir)/tests/ticket/bug434.xml \
36 $(srcdir)/tests/general/TestBoundary.xml \
37 $(srcdir)/tests/general/TestBuffer.xml \
38 $(srcdir)/tests/general/TestBufferMitredJoin.xml \
39 $(srcdir)/tests/general/TestCentroid.xml \
40 $(srcdir)/tests/general/TestConvexHull.xml \
41 $(srcdir)/tests/general/TestConvexHull-big.xml \
42 $(srcdir)/tests/general/TestDistance.xml \
43 $(srcdir)/tests/general/TestFunctionAAPrec.xml \
44 $(srcdir)/tests/general/TestFunctionAA.xml \
45 $(srcdir)/tests/general/TestFunctionLAPrec.xml \
46 $(srcdir)/tests/general/TestFunctionLA.xml \
47 $(srcdir)/tests/general/TestFunctionLLPrec.xml \
48 $(srcdir)/tests/general/TestFunctionLL.xml \
49 $(srcdir)/tests/general/TestFunctionPA.xml \
50 $(srcdir)/tests/general/TestFunctionPLPrec.xml \
51 $(srcdir)/tests/general/TestFunctionPL.xml \
52 $(srcdir)/tests/general/TestFunctionPP.xml \
53 $(srcdir)/tests/general/TestInteriorPoint.xml \
54 $(srcdir)/tests/general/TestRectanglePredicate.xml \
55 $(srcdir)/tests/general/TestRelateAA.xml \
56 $(srcdir)/tests/general/TestRelateLA.xml \
57 $(srcdir)/tests/general/TestRelateLL.xml \
58 $(srcdir)/tests/general/TestRelatePL.xml \
59 $(srcdir)/tests/general/TestRelateAC.xml \
60 $(srcdir)/tests/general/TestRelateLC.xml \
61 $(srcdir)/tests/general/TestRelatePA.xml \
62 $(srcdir)/tests/general/TestRelatePP.xml \
63 $(srcdir)/tests/general/TestSimple.xml \
64 $(srcdir)/tests/general/TestUnaryUnion.xml \
65 $(srcdir)/tests/general/TestValid.xml \
66 $(srcdir)/tests/general/TestValid2.xml \
67 $(srcdir)/tests/general/TestValid2-big.xml \
68 $(srcdir)/tests/general/TestWithinDistance.xml \
69 $(srcdir)/tests/stmlf/stmlf-cases-20061020.xml \
70 $(srcdir)/tests/stmlf/stmlf-cases-20061020-invalid-output.xml \
71 $(srcdir)/tests/stmlf/stmlf-cases-20070119.xml \
72 $(srcdir)/tests/robust/TestRobustOverlayFixed.xml \
73 $(srcdir)/tests/robust/TestRobustRelate.xml \
74 $(srcdir)/tests/fme.xml \
75 $(srcdir)/tests/TestBufferExternal.xml \
76 $(srcdir)/tests/TestBufferExternal2.xml \
77 $(srcdir)/tests/heisenbugs.xml \
78 $(srcdir)/tests/badguy3.xml \
79 $(srcdir)/tests/hole_from_shell.xml \
80 $(srcdir)/tests/hole_red.xml \
81 $(srcdir)/tests/safe/16595.xml \
82 $(srcdir)/tests/safe/16596.xml
84 INVALID_OUTPUT_XMLTESTS =
87 $(srcdir)/tests/failure/TestOverlay.xml
89 XMLTESTS=$(SAFE_XMLTESTS) $(INVALID_OUTPUT_XMLTESTS) $(FAILING_XMLTESTS)
91 EXTRA_DIST += $(XMLTESTS)
93 noinst_PROGRAMS = SimpleWKTTester XMLTester
94 #bin_PROGRAMS = XMLTester
97 LIBS = $(top_builddir)/src/libgeos.la
98 # -lmpatrol -lbfd -lintl -liberty -limagehlp
100 # CTS_SOURCES = CTS.cpp
101 # CTS_LDADD = $(LIBS)
103 SimpleWKTTester_SOURCES = SimpleWKTTester.cpp
104 SimpleWKTTester_LDADD = $(LIBS)
106 XMLTester_SOURCES = \
110 tinyxml/tinyxml.cpp \
112 tinyxml/tinystr.cpp \
113 tinyxml/tinyxmlerror.cpp \
114 tinyxml/tinyxmlparser.cpp \
115 BufferResultMatcher.h \
116 BufferResultMatcher.cpp \
117 SingleSidedBufferResultMatcher.h \
118 SingleSidedBufferResultMatcher.cpp
120 XMLTester_LDADD = $(LIBS)
122 # Intentionally drop -ansi -pedantic
123 # See http://trac.osgeo.org/geos/ticket/319
126 INCLUDES = -I$(top_srcdir)/include
127 INCLUDES += -I$(top_srcdir)/src/io/tinyxml -DTIXML_USE_STL
130 $(CXX) $(CXXFLAGS) -I../include -o staticXMLTester XMLTester.cpp MarkupSTL.o ../../src/geom/.libs/libgeos.a
132 testrunner: testrunner.sh Makefile
133 @sh $(srcdir)/testrunner.sh $@ --test-valid-output $(SAFE_XMLTESTS)