[libxslt] tests: Skip some tests if iconv/ICU is disabled
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] tests: Skip some tests if iconv/ICU is disabled
- Date: Wed, 7 Sep 2022 23:25:23 +0000 (UTC)
commit 223e5e7033589bc607676f5b863091905f5ee45b
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Wed Sep 7 22:39:48 2022 +0200
tests: Skip some tests if iconv/ICU is disabled
Fixes #77.
tests/Makefile.am | 1 +
tests/{general => encoding}/bug-146.out | 0
tests/{general => encoding}/bug-146.xml | 0
tests/{general => encoding}/bug-146.xsl | 0
tests/runtest.c | 4 ++++
5 files changed, 5 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 72ecabf1..4175b034 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -44,6 +44,7 @@ docbook_tests:
dist-hook:
cp -a $(srcdir)/REC $(distdir)
cp -a $(srcdir)/REC2 $(distdir)
+ cp -a $(srcdir)/encoding $(distdir)
cp -a $(srcdir)/exslt $(distdir)
cp -a $(srcdir)/extensions $(distdir)
cp -a $(srcdir)/general $(distdir)
diff --git a/tests/general/bug-146.out b/tests/encoding/bug-146.out
similarity index 100%
rename from tests/general/bug-146.out
rename to tests/encoding/bug-146.out
diff --git a/tests/general/bug-146.xml b/tests/encoding/bug-146.xml
similarity index 100%
rename from tests/general/bug-146.xml
rename to tests/encoding/bug-146.xml
diff --git a/tests/general/bug-146.xsl b/tests/encoding/bug-146.xsl
similarity index 100%
rename from tests/general/bug-146.xsl
rename to tests/encoding/bug-146.xsl
diff --git a/tests/runtest.c b/tests/runtest.c
index 197acaf5..708fe38d 100644
--- a/tests/runtest.c
+++ b/tests/runtest.c
@@ -680,6 +680,10 @@ testDesc testDescriptions[] = {
xsltTest, "general", "./*.xsl", 0 },
{ "general tests without dictionaries",
xsltTest, "general", "./*.xsl", XML_PARSE_NODICT },
+#if defined(LIBXML_ICONV_ENABLED) || defined(LIBXML_ICU_ENABLED)
+ { "encoding tests",
+ xsltTest, "encoding", "./*.xsl", 0 },
+#endif
{ "documents tests",
xsltTest, "documents", "./*.xsl", 0 },
{ "numbers tests",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]