diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-05-03 15:21:49 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-05-03 15:21:49 (GMT) |
commit | 4b8453f0303492a1de2dcf854555f6429fac550e (patch) | |
tree | 54abb57f4c5191452cadcac2f12feacbfc1f3218 /libxslt/tests/exslt/sets | |
parent | 7617e7a38edce33eab6ca4259b416b339e07ea29 (diff) | |
download | blt-4b8453f0303492a1de2dcf854555f6429fac550e.zip blt-4b8453f0303492a1de2dcf854555f6429fac550e.tar.gz blt-4b8453f0303492a1de2dcf854555f6429fac550e.tar.bz2 |
reinstall libxml2/libxslt
Diffstat (limited to 'libxslt/tests/exslt/sets')
-rw-r--r-- | libxslt/tests/exslt/sets/Makefile.am | 50 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/difference.1.out | 28 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/difference.1.xml | 14 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/difference.1.xsl | 46 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/distinct.1.out | 19 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/distinct.1.xml | 14 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/distinct.1.xsl | 24 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/has-same-node.1.out | 11 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/has-same-node.1.xml | 14 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/has-same-node.1.xsl | 24 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/leading.1.out | 10 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/leading.1.xml | 5 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/leading.1.xsl | 22 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/trailing.1.out | 9 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/trailing.1.xml | 5 | ||||
-rw-r--r-- | libxslt/tests/exslt/sets/trailing.1.xsl | 21 |
16 files changed, 0 insertions, 316 deletions
diff --git a/libxslt/tests/exslt/sets/Makefile.am b/libxslt/tests/exslt/sets/Makefile.am deleted file mode 100644 index 2f77c2d..0000000 --- a/libxslt/tests/exslt/sets/Makefile.am +++ /dev/null @@ -1,50 +0,0 @@ -## Process this file with automake to produce Makefile.in - -$(top_builddir)/xsltproc/xsltproc: - @(cd ../../../xsltproc ; $(MAKE) xsltproc) - -EXTRA_DIST = \ - difference.1.out difference.1.xml difference.1.xsl \ - distinct.1.out distinct.1.xml distinct.1.xsl \ - has-same-node.1.out has-same-node.1.xml has-same-node.1.xsl \ - leading.1.out leading.1.xml leading.1.xsl \ - trailing.1.out trailing.1.xml trailing.1.xsl - -CLEANFILES = .memdump - -valgrind: - @echo '## Running the regression tests under Valgrind' - $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests - -test tests: $(top_builddir)/xsltproc/xsltproc - @echo '## Running exslt sets tests' - @(echo > .memdump) - @(for i in $(srcdir)/*.xsl ; do \ - name=`basename $$i .xsl` ; \ - if [ ! -f $(srcdir)/$$name.xml ] ; then continue ; fi ; \ - log=`$(CHECKER) $(top_builddir)/xsltproc/xsltproc \ - $(srcdir)/$$name.xsl $(srcdir)/$$name.xml > $$name.res 2>$$name.bad;\ - if [ ! -f $(srcdir)/$$name.out ] ; then \ - cp $$name.res $(srcdir)/$$name.out ; \ - if [ -s $$name.bad ] ; then \ - mv $$name.bad $(srcdir)/$$name.err ; \ - fi ; \ - else \ - if [ ! -s $$name.res ] ; then \ - echo "Fatal error, no $$name.res\n" ; \ - else \ - diff $(srcdir)/$$name.out $$name.res ; \ - if [ -s $(srcdir)/$$name.err ] ; then \ - diff $(srcdir)/$$name.err $$name.bad; \ - else \ - diff /dev/null $$name.bad; \ - fi ; \ - fi ; \ - fi; \ - grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true`;\ - if [ -n "$$log" ] ; then \ - echo $$name result ; \ - echo "$$log" ; \ - fi ; \ - rm -f $$name.res $$name.bad ; \ - done) diff --git a/libxslt/tests/exslt/sets/difference.1.out b/libxslt/tests/exslt/sets/difference.1.out deleted file mode 100644 index 66bfa1e..0000000 --- a/libxslt/tests/exslt/sets/difference.1.out +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0"?> -<out xmlns:set="http://exslt.org/sets"> - Containing i and e: - Vienna; - Berlin; - - Containing i and no e: - Paris; - Madrid; - Calais; - - Containing e and no i: - Barcelona; - Hannover; - - Containing i: - Paris; - Madrid; - Vienna; - Calais; - Berlin; - - Empty set: - - Empty set: - - Empty set: - </out> diff --git a/libxslt/tests/exslt/sets/difference.1.xml b/libxslt/tests/exslt/sets/difference.1.xml deleted file mode 100644 index 8ff89fc..0000000 --- a/libxslt/tests/exslt/sets/difference.1.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> - -<doc> -<city name="Paris" country="France"/> -<city name="Madrid" country="Spain"/> -<city name="Vienna" country="Austria"/> -<city name="Barcelona" country="Spain"/> -<city name="Salzburg" country="Austria"/> -<city name="Bonn" country="Germany"/> -<city name="Lyon" country="France"/> -<city name="Hannover" country="Germany"/> -<city name="Calais" country="France"/> -<city name="Berlin" country="Germany"/> -</doc> diff --git a/libxslt/tests/exslt/sets/difference.1.xsl b/libxslt/tests/exslt/sets/difference.1.xsl deleted file mode 100644 index 2a32e26..0000000 --- a/libxslt/tests/exslt/sets/difference.1.xsl +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0"?> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" -xmlns:set="http://exslt.org/sets" > - -<!-- Test set:intersection, difference --> - -<xsl:variable name="i" select="//city[contains(@name,'i')]"/> -<xsl:variable name="e" select="//city[contains(@name,'e')]"/> - -<xsl:template match="/"> - <out> - Containing i and e: - <xsl:for-each select="set:intersection($i, $e)"> - <xsl:value-of select="@name"/>; - </xsl:for-each> - Containing i and no e: - <xsl:for-each select="set:difference($i, $e)"> - <xsl:value-of select="@name"/>; - </xsl:for-each> - Containing e and no i: - <xsl:for-each select="set:difference($e, $i)"> - <xsl:value-of select="@name"/>; - </xsl:for-each> - - <!-- test intersection and difference on empty sets --> - Containing i: - <xsl:for-each select="set:difference($i, /..)"> - <xsl:value-of select="@name"/>; - </xsl:for-each> - Empty set: - <xsl:for-each select="set:intersection($i, /..)"> - <xsl:value-of select="@name"/>; - </xsl:for-each> - Empty set: - <xsl:for-each select="set:intersection(/.., $i)"> - <xsl:value-of select="@name"/>; - </xsl:for-each> - Empty set: - <xsl:for-each select="set:difference(/.., $i)"> - <xsl:value-of select="@name"/>; - </xsl:for-each> - </out> -</xsl:template> - -</xsl:stylesheet> diff --git a/libxslt/tests/exslt/sets/distinct.1.out b/libxslt/tests/exslt/sets/distinct.1.out deleted file mode 100644 index f91efd6..0000000 --- a/libxslt/tests/exslt/sets/distinct.1.out +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0"?> -<out xmlns:set="http://exslt.org/sets"><all-countries>: - France; - Spain; - Austria; - Spain; - Austria; - Germany; - France; - Germany; - France; - Germany; - </all-countries>: - <distinct-countries>: - France; - Spain; - Austria; - Germany; - </distinct-countries></out> diff --git a/libxslt/tests/exslt/sets/distinct.1.xml b/libxslt/tests/exslt/sets/distinct.1.xml deleted file mode 100644 index 8ff89fc..0000000 --- a/libxslt/tests/exslt/sets/distinct.1.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> - -<doc> -<city name="Paris" country="France"/> -<city name="Madrid" country="Spain"/> -<city name="Vienna" country="Austria"/> -<city name="Barcelona" country="Spain"/> -<city name="Salzburg" country="Austria"/> -<city name="Bonn" country="Germany"/> -<city name="Lyon" country="France"/> -<city name="Hannover" country="Germany"/> -<city name="Calais" country="France"/> -<city name="Berlin" country="Germany"/> -</doc> diff --git a/libxslt/tests/exslt/sets/distinct.1.xsl b/libxslt/tests/exslt/sets/distinct.1.xsl deleted file mode 100644 index 621e41f..0000000 --- a/libxslt/tests/exslt/sets/distinct.1.xsl +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0"?> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" -xmlns:set="http://exslt.org/sets" > - -<!-- Test exslt:distinct --> - - -<xsl:template match="/"> - <out> - <all-countries>: - <xsl:for-each select="//@country"> - <xsl:value-of select="."/>; - </xsl:for-each> - </all-countries>: - <distinct-countries>: - <xsl:for-each select="set:distinct(//@country)"> - <xsl:value-of select="."/>; - </xsl:for-each> - </distinct-countries> - </out> -</xsl:template> - -</xsl:stylesheet> diff --git a/libxslt/tests/exslt/sets/has-same-node.1.out b/libxslt/tests/exslt/sets/has-same-node.1.out deleted file mode 100644 index 29f6003..0000000 --- a/libxslt/tests/exslt/sets/has-same-node.1.out +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0"?> -<out xmlns:set="http://exslt.org/sets"> - Test has-same-node() between two intersecting sets: - OK; - Test has-same-node() between two non-intersecting sets: - OK; - Test has-same-node() between two identical sets of namespace nodes: - OK; - Test has-same-node() between two disjoint sets of namespace nodes: - OK; - </out> diff --git a/libxslt/tests/exslt/sets/has-same-node.1.xml b/libxslt/tests/exslt/sets/has-same-node.1.xml deleted file mode 100644 index efe2d17..0000000 --- a/libxslt/tests/exslt/sets/has-same-node.1.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> - -<doc> -<city name="Paris" country="France" xmlns:x="one"/> -<city name="Madrid" country="Spain" xmlns:x="one"/> -<city name="Vienna" country="Austria" xmlns:x="one"/> -<city name="Barcelona" country="Spain" xmlns:x="one"/> -<city name="Salzburg" country="Austria" xmlns:x="one"/> -<city name="Bonn" country="Germany" xmlns:x="one"/> -<city name="Lyon" country="France" xmlns:x="one"/> -<city name="Hannover" country="Germany" xmlns:x="one"/> -<city name="Calais" country="France" xmlns:x="one"/> -<city name="Berlin" country="Germany" xmlns:x="one"/> -</doc> diff --git a/libxslt/tests/exslt/sets/has-same-node.1.xsl b/libxslt/tests/exslt/sets/has-same-node.1.xsl deleted file mode 100644 index f0b952a..0000000 --- a/libxslt/tests/exslt/sets/has-same-node.1.xsl +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0"?> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" -xmlns:set="http://exslt.org/sets" > - -<!-- Test set:has-same-node --> - -<xsl:variable name="a1" select="//city[@name='Vienna' or @name='Salzburg']"/> -<xsl:variable name="a2" select="//city[@country='Austria']"/> - -<xsl:template match="/"> - <out> - Test has-same-node() between two intersecting sets: - <xsl:if test="set:has-same-node($a1,$a2)">OK</xsl:if>; - Test has-same-node() between two non-intersecting sets: - <xsl:if test="not(set:has-same-node($a1,//city/@name))">OK</xsl:if>; - Test has-same-node() between two identical sets of namespace nodes: - <xsl:if test="set:has-same-node((//city[1])/namespace::*,(//city[1])/namespace::*)">OK</xsl:if>; - Test has-same-node() between two disjoint sets of namespace nodes: - <xsl:if test="not(set:has-same-node((//city[1])/namespace::*,(//city[2])/namespace::*))">OK</xsl:if>; - </out> -</xsl:template> - -</xsl:stylesheet> diff --git a/libxslt/tests/exslt/sets/leading.1.out b/libxslt/tests/exslt/sets/leading.1.out deleted file mode 100644 index bc81b5e..0000000 --- a/libxslt/tests/exslt/sets/leading.1.out +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0"?> -<out>; - 6; - 1; - 3; - 0; - 8; - 0; - 0; - </out> diff --git a/libxslt/tests/exslt/sets/leading.1.xml b/libxslt/tests/exslt/sets/leading.1.xml deleted file mode 100644 index 175dd0a..0000000 --- a/libxslt/tests/exslt/sets/leading.1.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0"?> -<doc> -<a/><b/><c/><d/><e/><f/><g/><h/> -</doc> - diff --git a/libxslt/tests/exslt/sets/leading.1.xsl b/libxslt/tests/exslt/sets/leading.1.xsl deleted file mode 100644 index 1d8d8bc..0000000 --- a/libxslt/tests/exslt/sets/leading.1.xsl +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0"?> - -<!-- TEST use of set:leading --> - - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" -xmlns:set="http://exslt.org/sets" exclude-result-prefixes="set" -> - - <xsl:template match="doc"> - <out>; - <xsl:value-of select="count(set:leading(*, g))"/>; - <xsl:value-of select="count(set:leading(*, b))"/>; - <xsl:value-of select="count(set:leading(*, d|f|h))"/>; - <xsl:value-of select="count(set:leading(*, a|f|h))"/>; - <xsl:value-of select="count(set:leading(*, x))"/>; - <xsl:value-of select="count(set:leading(x, *))"/>; - <xsl:value-of select="count(set:leading(a|b|c, h))"/>; - </out> - </xsl:template> - -</xsl:stylesheet> diff --git a/libxslt/tests/exslt/sets/trailing.1.out b/libxslt/tests/exslt/sets/trailing.1.out deleted file mode 100644 index d906b0a..0000000 --- a/libxslt/tests/exslt/sets/trailing.1.out +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0"?> -<out>; - 4; - 6; - 7; - 8; - 0; - 0; - </out> diff --git a/libxslt/tests/exslt/sets/trailing.1.xml b/libxslt/tests/exslt/sets/trailing.1.xml deleted file mode 100644 index 175dd0a..0000000 --- a/libxslt/tests/exslt/sets/trailing.1.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0"?> -<doc> -<a/><b/><c/><d/><e/><f/><g/><h/> -</doc> - diff --git a/libxslt/tests/exslt/sets/trailing.1.xsl b/libxslt/tests/exslt/sets/trailing.1.xsl deleted file mode 100644 index b705c8e..0000000 --- a/libxslt/tests/exslt/sets/trailing.1.xsl +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0"?> - -<!-- TEST use of set:trailing --> - - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" -xmlns:set="http://exslt.org/sets" exclude-result-prefixes="set" -> - - <xsl:template match="doc"> - <out>; - <xsl:value-of select="count(set:trailing(*, d))"/>; - <xsl:value-of select="count(set:trailing(*, b|d|f))"/>; - <xsl:value-of select="count(set:trailing(*, a|f|h))"/>; - <xsl:value-of select="count(set:trailing(*, x))"/>; - <xsl:value-of select="count(set:trailing(x, *))"/>; - <xsl:value-of select="count(set:trailing(d|e|f, a|e))"/>; - </out> - </xsl:template> - -</xsl:stylesheet> |