Changeset a229600 for LFS/lfs.xsl


Ignore:
Timestamp:
06/04/2006 05:56:01 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
c665386
Parents:
27f165a
Message:

Dumped tetsuite logs into a separate dir.
Fixed few bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r27f165a ra229600  
    2525
    2626  <!-- Time zone -->
    27   <xsl:param name="timezone" select="America/Toronto"/>
     27  <xsl:param name="timezone" select="GMT"/>
    2828
    2929  <!-- Page size -->
     
    3131
    3232  <!-- Locale settings -->
    33   <xsl:param name="lang" select="en_CA"/>
     33  <xsl:param name="lang" select="C"/>
    3434
    3535  <xsl:template match="/">
     
    113113      <xsl:text>make -k</xsl:text>
    114114      <xsl:value-of select="substring-after(string(),'make')"/>
    115       <xsl:text> || true&#xA;</xsl:text>
     115      <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    116116    </xsl:if>
    117117  </xsl:template>
     
    148148      </xsl:when>
    149149      <!-- The Coreutils and Module-Init-Tools test suites are optional -->
    150       <xsl:when test="($testsuite = '0' or $testsuite = '1') and
    151                 (ancestor::sect1[@id='ch-system-coreutils'] or
     150      <xsl:when test="(ancestor::sect1[@id='ch-system-coreutils'] or
    152151                ancestor::sect1[@id='ch-system-module-init-tools']) and
    153152                (contains(string(),'check') or
    154                 contains(string(),'dummy'))"/>
     153                contains(string(),'dummy'))">
     154        <xsl:choose>
     155          <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
     156          <xsl:otherwise>
     157            <xsl:apply-templates/>
     158            <xsl:if test="contains(string(),'check')">
     159              <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     160            </xsl:if>
     161            <xsl:text>&#xA;</xsl:text>
     162          </xsl:otherwise>
     163        </xsl:choose>
     164      </xsl:when>
    155165      <!-- Fixing toolchain test suites run -->
    156166      <xsl:when test="string() = 'make check' or
     
    160170                    ancestor::chapter[@id='chapter-building-system']) or
    161171                    $testsuite = '3'">
    162             <xsl:text>make -k check || true</xsl:text>
    163             <xsl:text>&#xA;</xsl:text>
     172            <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    164173          </xsl:when>
    165174        </xsl:choose>
     
    168177        <xsl:choose>
    169178          <xsl:when test="$testsuite != '0'">
    170             <xsl:value-of select="substring-before(string(),'&#xA;')"/>
    171             <xsl:text> || true&#xA;</xsl:text>
    172             <xsl:value-of select="substring-after(string(),'&#xA;')"/>
    173             <xsl:text>&#xA;</xsl:text>
     179            <xsl:value-of select="substring-before(string(),'2&gt;&amp;1')"/>
     180            <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    174181          </xsl:when>
    175182        </xsl:choose>
     
    182189                    $testsuite = '3'">
    183190            <xsl:apply-templates/>
     191            <xsl:if test="contains(string(),'test_summary')">
     192              <xsl:text> &gt;&gt; $TEST_LOG</xsl:text>
     193            </xsl:if>
    184194            <xsl:text>&#xA;</xsl:text>
    185195          </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.