Changeset 1d5f3e3 for LFS


Ignore:
Timestamp:
01/07/2018 08:20:12 PM (6 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
489bdc2
Parents:
4b2a5fd
Message:

Always generate test instructions, and comment unwanted ones out.
Fixes ticket #1695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r4b2a5fd r1d5f3e3  
    412412      </xsl:when>
    413413<!-- test instructions -->
    414        <xsl:when test="@remap = 'test'">
    415         <xsl:choose>
    416           <xsl:when test="$testsuite = '0'"/>
    417           <xsl:when test="$testsuite = '1' and
     414      <xsl:when test="@remap = 'test'">
     415        <xsl:if test="$testsuite = '0' or
     416                      $testsuite = '1' and
    418417                          not(ancestor::sect1[@id='ch-system-gcc']) and
    419418                          not(ancestor::sect1[@id='ch-system-glibc']) and
    420419                          not(ancestor::sect1[@id='ch-system-gmp']) and
    421420                          not(ancestor::sect1[@id='ch-system-mpfr']) and
    422                           not(ancestor::sect1[@id='ch-system-binutils'])"/>
    423           <xsl:when test="$testsuite = '2' and
    424                           ancestor::chapter[@id='chapter-temporary-tools']"/>
    425           <xsl:otherwise>
     421                          not(ancestor::sect1[@id='ch-system-binutils']) or
     422                      $testsuite = '2' and
     423                          ancestor::chapter[@id='chapter-temporary-tools']">
     424          <xsl:text># </xsl:text>
     425        </xsl:if>
     426        <xsl:choose>
     427          <xsl:when test="$bomb-testsuite = 'n'">
    426428            <xsl:choose>
    427               <xsl:when test="$bomb-testsuite = 'n'">
    428                 <xsl:choose>
    429                   <!-- special case for glibc -->
    430                   <xsl:when test="contains(string(), 'glibc-check-log')">
    431                     <xsl:value-of
    432                        select="substring-before(string(),'2&gt;&amp;1')"/>
    433                     <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    434                   </xsl:when>
    435                   <!-- special case for procps-ng -->
    436                   <xsl:when test="contains(string(), 'pushd')">
    437                     <xsl:text>{ </xsl:text>
    438                     <xsl:apply-templates/>
    439                     <xsl:text>; } &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    440                   </xsl:when>
    441                   <xsl:when test="contains(string(), 'make -k')">
    442                     <xsl:apply-templates/>
    443                     <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    444                   </xsl:when>
    445                   <xsl:when test="contains(string(), 'make')">
    446                     <xsl:value-of select="substring-before(string(),'make')"/>
    447                     <xsl:text>make -k</xsl:text>
    448                     <xsl:value-of select="substring-after(string(),'make')"/>
    449                     <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    450                   </xsl:when>
    451                   <xsl:otherwise>
    452                     <xsl:apply-templates/>
    453                     <xsl:if test="not(contains(string(), '&gt;&gt;'))">
    454                       <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
    455                     </xsl:if>
    456                     <xsl:text>&#xA;</xsl:text>
    457                   </xsl:otherwise>
    458                 </xsl:choose>
     429              <!-- special case for glibc -->
     430              <xsl:when test="contains(string(), 'glibc-check-log')">
     431                <xsl:value-of
     432                   select="substring-before(string(),'2&gt;&amp;1')"/>
     433                <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     434              </xsl:when>
     435              <!-- special case for procps-ng -->
     436              <xsl:when test="contains(string(), 'pushd')">
     437                <xsl:text>{ </xsl:text>
     438                <xsl:apply-templates/>
     439                <xsl:text>; } &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     440              </xsl:when>
     441              <xsl:when test="contains(string(), 'make -k')">
     442                <xsl:apply-templates/>
     443                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     444              </xsl:when>
     445              <xsl:when test="contains(string(), 'make')">
     446                <xsl:value-of select="substring-before(string(),'make')"/>
     447                <xsl:text>make -k</xsl:text>
     448                <xsl:value-of select="substring-after(string(),'make')"/>
     449                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    459450              </xsl:when>
    460451              <xsl:otherwise>
    461                 <!-- bomb-testsuite != 'n'-->
    462                 <xsl:choose>
    463                   <!-- special case for glibc -->
    464                   <xsl:when test="contains(string(), 'glibc-check-log')">
    465                     <xsl:value-of
    466                        select="substring-before(string(),'2&gt;&amp;1')"/>
    467                     <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    468                   </xsl:when>
    469                   <!-- special case for gmp -->
    470                   <xsl:when test="contains(string(), 'tee gmp-check-log')">
    471                     <xsl:text>(</xsl:text>
    472                     <xsl:apply-templates/>
    473                     <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 &amp;&amp; exit $PIPESTATUS)&#xA;</xsl:text>
    474                   </xsl:when>
    475                   <!-- special case for procps-ng -->
    476                   <xsl:when test="contains(string(), 'pushd')">
    477                     <xsl:text>{ </xsl:text>
    478                     <xsl:apply-templates/>
    479                     <xsl:text>; } &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
    480                   </xsl:when>
    481                   <xsl:when test="contains(string(), 'make -k')">
    482                     <xsl:apply-templates/>
    483                     <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    484                   </xsl:when>
    485                   <xsl:otherwise>
    486                     <xsl:apply-templates/>
    487                     <xsl:if test="not(contains(string(), '&gt;&gt;'))">
    488                       <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
    489                     </xsl:if>
    490                     <xsl:text>&#xA;</xsl:text>
    491                   </xsl:otherwise>
    492                 </xsl:choose>
     452                <xsl:apply-templates/>
     453                <xsl:if test="not(contains(string(), '&gt;&gt;'))">
     454                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
     455                </xsl:if>
     456                <xsl:text>&#xA;</xsl:text>
    493457              </xsl:otherwise>
    494458            </xsl:choose>
    495           </xsl:otherwise>
     459          </xsl:when>
     460          <xsl:otherwise>
     461            <!-- bomb-testsuite != 'n'-->
     462            <xsl:choose>
     463              <!-- special case for glibc -->
     464              <xsl:when test="contains(string(), 'glibc-check-log')">
     465                <xsl:value-of
     466                   select="substring-before(string(),'2&gt;&amp;1')"/>
     467                <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     468              </xsl:when>
     469              <!-- special case for gmp -->
     470              <xsl:when test="contains(string(), 'tee gmp-check-log')">
     471                <xsl:text>(</xsl:text>
     472                <xsl:apply-templates/>
     473                <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 &amp;&amp; exit $PIPESTATUS)&#xA;</xsl:text>
     474              </xsl:when>
     475              <!-- special case for procps-ng -->
     476              <xsl:when test="contains(string(), 'pushd')">
     477                <xsl:text>{ </xsl:text>
     478                <xsl:apply-templates/>
     479                <xsl:text>; } &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     480              </xsl:when>
     481              <xsl:when test="contains(string(), 'make -k')">
     482                <xsl:apply-templates/>
     483                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     484              </xsl:when>
     485              <xsl:otherwise>
     486                <xsl:apply-templates/>
     487                <xsl:if test="not(contains(string(), '&gt;&gt;'))">
     488                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
     489                </xsl:if>
     490                <xsl:text>&#xA;</xsl:text>
     491              </xsl:otherwise>
     492            </xsl:choose>
     493          </xsl:otherwise> <!-- end not bomb-test=n -->
    496494        </xsl:choose>
    497495      </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.