Changeset 1d5f3e3


Ignore:
Timestamp:
01/07/2018 08:20:12 PM (7 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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Config.in

    r4b2a5fd r1d5f3e3  
    800800        help
    801801            #-- Run test suites
    802             #
     802            #  If you select 'y' here:
    803803            #  You will have to select between:
    804             #
    805804            #  - Only critical final system testsuites
    806805            #  - All final system testsuites
    807806            #  - Both temporary tools and final system testsuites
     807            #  You will be prompted also about the "flavour" of the
     808            #  testsuites run:
     809            #  - Don't stop on test suite failures
     810            #  - Abort the build at the first test suite failure
     811            #
     812            #  Note that in any case, all the test instructions will
     813            #  be generated. Those which are not wanted will be commented
     814            #  out. If you select 'n' here, the commented test instructions
     815            #  do not stop on test suite failures.
    808816            #
    809817            #  HLFS and CLFS have no testsuites available in the
    810818            #  temporary tools phase
    811             #  You will be prompted also about the "flavour" of the
    812             #  testsuites run:
    813             #
    814             #  - Don't stop on test suite failures
    815             #  - Abort the build at the first test suite failure
    816             #
    817819
    818820    menu "Test settings"
     
    827829                #-- Critical tests:
    828830                # Only Glibc, Binutils, GMP, MPFR, MPC and GCC
    829                 # testsuites for final system
     831                # testsuites for final system. The others are commented
     832                # out.
    830833
    831834        config    TST_2
    832835            bool    "All final system testsuites"
     836            help
     837                #-- All final system test suites:
     838                # Test instructions for the temporary tools (if available)
     839                # are commented out.
    833840
    834841        config    TST_3
     
    836843            help
    837844                #-- All tests:
    838                 # Runs all the testsuites for both temporary tools
    839                 # and final system
     845                # Runs all the testsuites for both temporary tools (if
     846                # available) and final system
    840847    endchoice
    841848
  • 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.