Changeset 28f4756 for CLFS


Ignore:
Timestamp:
08/05/2006 02:51:11 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
963fdae
Parents:
1e69324
Message:

Added config option to allow to bommb in test suites faiures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLFS/clfs.xsl

    r1e69324 r28f4756  
    2424       1 = only Glibc, GCC and Binutils testsuites
    2525       2 = all testsuites
    26        3 = alias to 2 -->
     26       3 = alias to 2
     27  -->
    2728  <xsl:param name="testsuite" select="1"/>
     29
     30  <!-- Bomb on test suites failures?
     31       0 = no, I want to build the full system and review the logs
     32       1 = yes, bomb at the first test suite failure to can review the build dir
     33  -->
     34  <xsl:param name="bomb-testsuite" select="0"/>
    2835
    2936  <!-- Install vim-lang package? -->
     
    118125            contains(string(),'check')) and
    119126            ($testsuite = '2' or $testsuite = '3')">
    120       <xsl:value-of select="substring-before(string(),'make')"/>
    121       <xsl:text>make -k</xsl:text>
    122       <xsl:value-of select="substring-after(string(),'make')"/>
    123       <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     127      <xsl:choose>
     128        <xsl:when test="$bomb-testsuite = '0'">
     129          <xsl:value-of select="substring-before(string(),'make')"/>
     130          <xsl:text>make -k</xsl:text>
     131          <xsl:value-of select="substring-after(string(),'make')"/>
     132          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     133        </xsl:when>
     134        <xsl:otherwise>
     135          <xsl:apply-templates/>
     136          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     137        </xsl:otherwise>
     138      </xsl:choose>
    124139    </xsl:if>
    125140  </xsl:template>
     
    173188          <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
    174189          <xsl:otherwise>
    175             <xsl:apply-templates/>
     190            <xsl:if test="not(contains(string(),'check'))">
     191              <xsl:apply-templates/>
     192              <xsl:text>&#xA;</xsl:text>
     193            </xsl:if>
    176194            <xsl:if test="contains(string(),'check')">
    177               <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     195              <xsl:choose>
     196                <xsl:when test="$bomb-testsuite = '0'">
     197                  <xsl:value-of select="substring-before(string(),'check')"/>
     198                  <xsl:text>-k check</xsl:text>
     199                  <xsl:value-of select="substring-after(string(),'check')"/>
     200                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     201                </xsl:when>
     202                <xsl:otherwise>
     203                  <xsl:apply-templates/>
     204                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     205                </xsl:otherwise>
     206              </xsl:choose>
    178207            </xsl:if>
    179             <xsl:text>&#xA;</xsl:text>
    180208          </xsl:otherwise>
    181209        </xsl:choose>
     
    186214        <xsl:choose>
    187215          <xsl:when test="$testsuite != '0'">
    188             <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     216            <xsl:choose>
     217              <xsl:when test="$bomb-testsuite = '0'">
     218                <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     219              </xsl:when>
     220              <xsl:otherwise>
     221                <xsl:apply-templates/>
     222                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     223              </xsl:otherwise>
     224            </xsl:choose>
    189225          </xsl:when>
    190226        </xsl:choose>
     
    194230          <xsl:when test="$testsuite != '0'">
    195231            <xsl:value-of select="substring-before(string(),'&gt;g')"/>
    196             <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     232            <xsl:choose>
     233              <xsl:when test="$bomb-testsuite = '0'">
     234                <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     235              </xsl:when>
     236              <xsl:otherwise>
     237                <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     238              </xsl:otherwise>
     239            </xsl:choose>
    197240          </xsl:when>
    198241        </xsl:choose>
     
    203246          <xsl:when test="$testsuite != '0'">
    204247            <xsl:apply-templates/>
    205             <xsl:if test="contains(string(),'test_summary')">
    206               <xsl:text> &gt;&gt; $TEST_LOG</xsl:text>
    207             </xsl:if>
    208             <xsl:text>&#xA;</xsl:text>
     248            <xsl:text> &gt;&gt; $TEST_LOG&#xA;</xsl:text>
    209249          </xsl:when>
    210250        </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.