Changeset 056486c for LFS/lfs.xsl


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
  • LFS/lfs.xsl

    r89ddac0 r056486c  
    1818       1 = only chapter06 Glibc, GCC and Binutils testsuites
    1919       2 = all chapter06 testsuites
    20        3 = all chapter05 and chapter06 testsuites-->
     20       3 = all chapter05 and chapter06 testsuites
     21  -->
    2122  <xsl:param name="testsuite" select="1"/>
     23
     24  <!-- Bomb on test suites failures?
     25       0 = no, I want to build the full system and review the logs
     26       1 = yes, bomb at the first test suite failure to can review the build dir
     27  -->
     28  <xsl:param name="bomb-testsuite" select="0"/>
    2229
    2330  <!-- Install vim-lang package? -->
     
    110117            ancestor::chapter[@id='chapter-building-system']) or
    111118            $testsuite = '3')">
    112       <xsl:value-of select="substring-before(string(),'make')"/>
    113       <xsl:text>make -k</xsl:text>
    114       <xsl:value-of select="substring-after(string(),'make')"/>
    115       <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     119      <xsl:choose>
     120        <xsl:when test="$bomb-testsuite = '0'">
     121          <xsl:value-of select="substring-before(string(),'make')"/>
     122          <xsl:text>make -k</xsl:text>
     123          <xsl:value-of select="substring-after(string(),'make')"/>
     124          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     125        </xsl:when>
     126        <xsl:otherwise>
     127          <xsl:apply-templates/>
     128          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     129        </xsl:otherwise>
     130      </xsl:choose>
    116131    </xsl:if>
    117132  </xsl:template>
     
    155170          <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
    156171          <xsl:otherwise>
    157             <xsl:apply-templates/>
     172            <xsl:if test="not(contains(string(),'check'))">
     173              <xsl:apply-templates/>
     174              <xsl:text>&#xA;</xsl:text>
     175            </xsl:if>
    158176            <xsl:if test="contains(string(),'check')">
    159               <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     177              <xsl:choose>
     178                <xsl:when test="$bomb-testsuite = '0'">
     179                  <xsl:value-of select="substring-before(string(),'check')"/>
     180                  <xsl:text>-k check</xsl:text>
     181                  <xsl:value-of select="substring-after(string(),'check')"/>
     182                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     183                </xsl:when>
     184                <xsl:otherwise>
     185                  <xsl:apply-templates/>
     186                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     187                </xsl:otherwise>
     188              </xsl:choose>
    160189            </xsl:if>
    161             <xsl:text>&#xA;</xsl:text>
    162190          </xsl:otherwise>
    163191        </xsl:choose>
     
    170198                    ancestor::chapter[@id='chapter-building-system']) or
    171199                    $testsuite = '3'">
    172             <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     200            <xsl:choose>
     201              <xsl:when test="$bomb-testsuite = '0'">
     202                <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     203              </xsl:when>
     204              <xsl:otherwise>
     205                <xsl:apply-templates/>
     206                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     207              </xsl:otherwise>
     208            </xsl:choose>
    173209          </xsl:when>
    174210        </xsl:choose>
     
    189225                    $testsuite = '3'">
    190226            <xsl:apply-templates/>
    191             <xsl:if test="contains(string(),'test_summary')">
    192               <xsl:text> &gt;&gt; $TEST_LOG</xsl:text>
    193             </xsl:if>
    194             <xsl:text>&#xA;</xsl:text>
     227            <xsl:text> &gt;&gt; $TEST_LOG&#xA;</xsl:text>
    195228          </xsl:when>
    196229        </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.