Changeset 056486c for HLFS


Ignore:
Timestamp:
08/05/2006 03:42:52 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
206c894
Parents:
89ddac0
Message:

Ported r2882 from trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/hlfs.xsl

    r89ddac0 r056486c  
    2727       1 = only chapter06 Glibc, GCC and Binutils testsuites
    2828       2 = all chapter06 testsuites
    29        3 = alias to 2 -->
     29       3 = alias to 2
     30  -->
    3031  <xsl:param name="testsuite" select="1"/>
     32
     33  <!-- Bomb on test suites failures?
     34       0 = no, I want to build the full system and review the logs
     35       1 = yes, bomb at the first test suite failure to can review the build dir
     36  -->
     37  <xsl:param name="bomb-testsuite" select="0"/>
    3138
    3239  <!-- Time zone -->
     
    136143                  contains(string(),'check')) and
    137144                  ($testsuite = '2' or $testsuite = '3')">
    138       <xsl:value-of select="substring-before(string(),'make')"/>
    139       <xsl:text>make -k</xsl:text>
    140       <xsl:value-of select="substring-after(string(),'make')"/>
    141       <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     145      <xsl:choose>
     146        <xsl:when test="$bomb-testsuite = '0'">
     147          <xsl:value-of select="substring-before(string(),'make')"/>
     148          <xsl:text>make -k</xsl:text>
     149          <xsl:value-of select="substring-after(string(),'make')"/>
     150          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     151        </xsl:when>
     152        <xsl:otherwise>
     153          <xsl:apply-templates/>
     154          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     155        </xsl:otherwise>
     156      </xsl:choose>
    142157    </xsl:if>
    143158  </xsl:template>
     
    206221          <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
    207222          <xsl:otherwise>
    208             <xsl:apply-templates/>
     223            <xsl:if test="not(contains(string(),'check'))">
     224              <xsl:apply-templates/>
     225              <xsl:text>&#xA;</xsl:text>
     226            </xsl:if>
    209227            <xsl:if test="contains(string(),'check')">
    210               <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     228              <xsl:choose>
     229                <xsl:when test="$bomb-testsuite = '0'">
     230                  <xsl:value-of select="substring-before(string(),'check')"/>
     231                  <xsl:text>-k check</xsl:text>
     232                  <xsl:value-of select="substring-after(string(),'check')"/>
     233                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     234                </xsl:when>
     235                <xsl:otherwise>
     236                  <xsl:apply-templates/>
     237                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     238                </xsl:otherwise>
     239              </xsl:choose>
    211240            </xsl:if>
    212             <xsl:text>&#xA;</xsl:text>
    213241          </xsl:otherwise>
    214242        </xsl:choose>
     
    218246        <xsl:choose>
    219247          <xsl:when test="$testsuite != '0'">
    220             <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     248            <xsl:apply-templates/>
     249            <xsl:choose>
     250              <xsl:when test="$bomb-testsuite = '0'">
     251                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     252              </xsl:when>
     253              <xsl:otherwise>
     254                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     255              </xsl:otherwise>
     256            </xsl:choose>
    221257          </xsl:when>
    222258        </xsl:choose>
     
    227263          <xsl:when test="$testsuite != '0'">
    228264            <xsl:value-of select="substring-before(string(),'&gt; glibc-')"/>
    229             <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     265            <xsl:choose>
     266              <xsl:when test="$bomb-testsuite = '0'">
     267                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     268              </xsl:when>
     269              <xsl:otherwise>
     270                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     271              </xsl:otherwise>
     272            </xsl:choose>
    230273          </xsl:when>
    231274        </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.