blob: 06966bb69dc79984de4f0f6e4b229bef32ee35d1 [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# $Id$
#
check_PROGRAMS = ${testprogs}
LDADD = ${top_builddir}/src/libxerces-c.la
# the -I${top_builddir}/src is needed to pick the xercesc/util/Xerces_autoconf_config.hpp
# header file when doing out-of-tree builds
AM_CPPFLAGS = -I${top_builddir}/src -I${top_srcdir}/src
EXTRA_DIST = CMakeLists.txt \
expected \
scripts \
src/DOM/Normalizer/expectedOutput \
src/DOM/TypeInfo/data/combined.dtd \
src/DOM/TypeInfo/data/combined.xml \
src/DOM/TypeInfo/data/combined.xsd \
src/DOM/TypeInfo/data/SecondSchema.xsd \
src/DOM/TypeInfo/data/TypeInfo.dtd \
src/DOM/TypeInfo/data/TypeInfo.xml \
src/DOM/TypeInfo/data/TypeInfo.xsd \
src/DOM/TypeInfo/data/TypeInfoJustDTD.xml \
src/DOM/TypeInfo/data/TypeInfoNoDTD.xml \
src/DOM/TypeInfo/data/TypeInfoNoDTD.xsd \
src/XSTSHarness/regression \
src/xinclude
clean-local:
-rm -rf observed
testprogs =
testprogs += DOMTest
DOMTest_SOURCES = src/DOM/DOMTest/DTest.cpp \
src/DOM/DOMTest/DTest.h
testprogs += DOMMemTest
DOMMemTest_SOURCES = src/DOM/DOMMemTest/DOMMemTest.cpp
testprogs += Normalizer
Normalizer_SOURCES = src/DOM/Normalizer/Normalizer.cpp \
src/DOM/Normalizer/Normalizer.hpp
testprogs += RangeTest
RangeTest_SOURCES = src/DOM/RangeTest/RangeTest.cpp
testprogs += DOMTraversalTest
DOMTraversalTest_SOURCES = src/DOM/Traversal/Traversal.cpp
testprogs += DOMTypeInfoTest
DOMTypeInfoTest_SOURCES = src/DOM/TypeInfo/TypeInfo.cpp \
src/DOM/TypeInfo/TypeInfo.hpp
testprogs += EncodingTest
EncodingTest_SOURCES = src/EncodingTest/EncodingTest.cpp
testprogs += InitTermTest
InitTermTest_SOURCES = src/InitTermTest/InitTermTest.cpp \
src/InitTermTest/InitTermTest.hpp
testprogs += MemHandlerTest
MemHandlerTest_SOURCES = src/MemHandlerTest/MemoryMonitor.cpp \
src/MemHandlerTest/MemoryMonitor.hpp \
src/MemHandlerTest/SimpleValueHashTableOf.hpp
testprogs += NetAccessorTest
NetAccessorTest_SOURCES = src/NetAccessorTest/NetAccessorTest.cpp
# Doesn't compile under gcc4 for some reason
# dcargill says this is obsolete and we can delete it.
#testprogs += ParserTest
#ParserTest_SOURCES = src/ParserTest/ParserTest.cpp \
# src/ParserTest/ParserTest.hpp \
# src/ParserTest/ParserTest_Parser.cpp \
# src/ParserTest/ParserTest_Parser.hpp
testprogs += ThreadTest
ThreadTest_SOURCES = src/ThreadTest/ThreadTest.cpp
# Fails to compile under gcc 4 (ambiguous calls to NullPointerException)
# dcargill says this is obsolete and we can delete it.
#testprogs += UtilTests
#UtilTests_SOURCES = src/UtilTests/CoreTests_BitSet.cpp \
# src/UtilTests/CoreTests_CountedPointer.cpp \
# src/UtilTests/CoreTests_RefArray.cpp \
# src/UtilTests/CoreTests_RefHashTable.cpp \
# src/UtilTests/CoreTests_RefStack.cpp \
# src/UtilTests/CoreTests_RefVector.cpp \
# src/UtilTests/CoreTests_String.cpp \
# src/UtilTests/CoreTests_Transcoders.cpp \
# src/UtilTests/CoreTests_URL.cpp \
# src/UtilTests/CoreTests_ValueArray.cpp \
# src/UtilTests/CoreTests_ValueStack.cpp \
# src/UtilTests/CoreTests_ValueVector.cpp \
# src/UtilTests/CoreTestsMain.cpp \
# src/UtilTests/CoreTests.hpp
testprogs += XSerializerTest
XSerializerTest_SOURCES = src/XSerializerTest/XSerializerHandlers.cpp \
src/XSerializerTest/XSerializerHandlers.hpp \
src/XSerializerTest/XSerializerTest.cpp \
src/XSerializerTest/XSerializerTest.hpp
testprogs += XSTSHarness
XSTSHarness_SOURCES = src/XSTSHarness/XSTSHarness.cpp \
src/XSTSHarness/XSTSHarness.hpp \
src/XSTSHarness/XSTSHarnessHandlers.cpp \
src/XSTSHarness/XSTSHarnessHandlers.hpp \
src/XSTSHarness/XMLHarnessHandlers.cpp \
src/XSTSHarness/XMLHarnessHandlers.hpp
# Fails to compile under gcc4 (values too long for long type)
testprogs += XSValueTest
XSValueTest_SOURCES = src/XSValueTest/XSValueTest.cpp \
src/XSValueTest/XSValueTest.hpp
if XERCES_USE_CHAR16
testprogs += Char16Test
Char16Test_SOURCES = src/Char16Test/Char16Test.cpp
endif
TESTS = scripts/DOMTest \
scripts/DOMMemTest \
scripts/RangeTest \
scripts/DOMTraversalTest \
scripts/XSerializerTest \
scripts/XSerializerTest1 \
scripts/XSerializerTest2 \
scripts/XSerializerTest3 \
scripts/XSerializerTest4 \
scripts/XSerializerTest5 \
scripts/XSValueTest \
scripts/InitTermTest \
scripts/InitTermTest1 \
scripts/InitTermTest2 \
scripts/InitTermTest3 \
scripts/ThreadTest \
scripts/ThreadTest1 \
scripts/ThreadTest2 \
scripts/ThreadTest3 \
scripts/ThreadTest4 \
scripts/ThreadTest5 \
scripts/ThreadTest6 \
scripts/ThreadTest7 \
scripts/ThreadTest8 \
scripts/ThreadTest9 \
scripts/ThreadTest10 \
scripts/ThreadTest11 \
scripts/ThreadTest12 \
scripts/ThreadTest13 \
scripts/ThreadTest14 \
scripts/ThreadTest15 \
scripts/MemHandlerTest \
scripts/MemHandlerTest1 \
scripts/MemHandlerTest2 \
scripts/DOMTypeInfoTest
if XERCES_USE_CHAR16
TESTS += scripts/Char16Test
endif
XFAIL_TESTS = scripts/XSerializerTest \
scripts/InitTermTest \
scripts/ThreadTest \
scripts/MemHandlerTest