diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-02-22 11:52:38 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-02-22 11:52:38 +0100 |
commit | b057239b3f65c8dd9d472fc878214ea4b1d852d3 (patch) | |
tree | 6a65f465ff2d6ae153da9df017e6ac74f4b55f37 /runtest.c | |
parent | d05317cee5eb2bd35269b7706a8850c6c3097de3 (diff) | |
download | libxml2-b057239b3f65c8dd9d472fc878214ea4b1d852d3.tar.gz |
More fixes to --without-valid build
Fix runtest and Python bindings when building --without-valid.
The Python tests still fail. There doesn't seem to be a mechanism to
disable tests depending on feature flags.
Diffstat (limited to 'runtest.c')
-rw-r--r-- | runtest.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2647,6 +2647,7 @@ xptrDocTest(const char *filename, } #endif /* LIBXML_XPTR_ENABLED */ +#ifdef LIBXML_VALID_ENABLED /** * xmlidDocTest: * @filename: the file to parse @@ -2714,6 +2715,7 @@ xmlidDocTest(const char *filename, } return(res); } +#endif /* LIBXML_VALID_ENABLED */ #endif /* LIBXML_DEBUG_ENABLED */ #endif /* XPATH */ @@ -4315,6 +4317,7 @@ testDesc testDescriptions[] = { { "XML Namespaces regression tests", errParseTest, "./test/namespaces/*", "result/namespaces/", "", ".err", 0 }, +#ifdef LIBXML_VALID_ENABLED { "Error cases regression tests", errParseTest, "./test/errors/*.xml", "result/errors/", "", ".err", 0 }, @@ -4327,10 +4330,13 @@ testDesc testDescriptions[] = { { "Error cases regression tests (old 1.0)", errParseTest, "./test/errors10/*.xml", "result/errors10/", "", ".err", XML_PARSE_OLD10 }, +#endif #ifdef LIBXML_READER_ENABLED +#ifdef LIBXML_VALID_ENABLED { "Error cases stream regression tests", streamParseTest, "./test/errors/*.xml", "result/errors/", NULL, ".str", 0 }, +#endif { "Reader regression tests", streamParseTest, "./test/*", "result/", ".rdr", NULL, 0 }, @@ -4430,11 +4436,13 @@ testDesc testDescriptions[] = { xptrDocTest, "./test/XPath/docs/*", NULL, NULL, NULL, 0 }, #endif +#ifdef LIBXML_VALID_ENABLED { "xml:id regression tests" , xmlidDocTest, "./test/xmlid/*", "result/xmlid/", "", ".err", 0 }, #endif #endif +#endif { "URI parsing tests" , uriParseTest, "./test/URI/*.uri", "result/URI/", "", NULL, 0 }, |