Changeset e35e794 for LFS


Ignore:
Timestamp:
06/04/2006 05:59:02 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
9199a13
Parents:
4fe29a2
Message:

Merged r2750 from trunk.

Location:
LFS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r4fe29a2 re35e794  
    2525
    2626  <!-- Time zone -->
    27   <xsl:param name="timezone" select="America/Toronto"/>
     27  <xsl:param name="timezone" select="GMT"/>
    2828
    2929  <!-- Page size -->
     
    3131
    3232  <!-- Locale settings -->
    33   <xsl:param name="lang" select="en_CA"/>
     33  <xsl:param name="lang" select="C"/>
    3434
    3535  <xsl:template match="/">
     
    113113      <xsl:text>make -k</xsl:text>
    114114      <xsl:value-of select="substring-after(string(),'make')"/>
    115       <xsl:text> || true&#xA;</xsl:text>
     115      <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    116116    </xsl:if>
    117117  </xsl:template>
     
    148148      </xsl:when>
    149149      <!-- The Coreutils and Module-Init-Tools test suites are optional -->
    150       <xsl:when test="($testsuite = '0' or $testsuite = '1') and
    151                 (ancestor::sect1[@id='ch-system-coreutils'] or
     150      <xsl:when test="(ancestor::sect1[@id='ch-system-coreutils'] or
    152151                ancestor::sect1[@id='ch-system-module-init-tools']) and
    153152                (contains(string(),'check') or
    154                 contains(string(),'dummy'))"/>
     153                contains(string(),'dummy'))">
     154        <xsl:choose>
     155          <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
     156          <xsl:otherwise>
     157            <xsl:apply-templates/>
     158            <xsl:if test="contains(string(),'check')">
     159              <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     160            </xsl:if>
     161            <xsl:text>&#xA;</xsl:text>
     162          </xsl:otherwise>
     163        </xsl:choose>
     164      </xsl:when>
    155165      <!-- Fixing toolchain test suites run -->
    156166      <xsl:when test="string() = 'make check' or
     
    160170                    ancestor::chapter[@id='chapter-building-system']) or
    161171                    $testsuite = '3'">
    162             <xsl:text>make -k check || true</xsl:text>
    163             <xsl:text>&#xA;</xsl:text>
     172            <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    164173          </xsl:when>
    165174        </xsl:choose>
     
    168177        <xsl:choose>
    169178          <xsl:when test="$testsuite != '0'">
    170             <xsl:value-of select="substring-before(string(),'&#xA;')"/>
    171             <xsl:text> || true&#xA;</xsl:text>
    172             <xsl:value-of select="substring-after(string(),'&#xA;')"/>
    173             <xsl:text>&#xA;</xsl:text>
     179            <xsl:value-of select="substring-before(string(),'2&gt;&amp;1')"/>
     180            <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    174181          </xsl:when>
    175182        </xsl:choose>
     
    182189                    $testsuite = '3'">
    183190            <xsl:apply-templates/>
     191            <xsl:if test="contains(string(),'test_summary')">
     192              <xsl:text> &gt;&gt; $TEST_LOG</xsl:text>
     193            </xsl:if>
    184194            <xsl:text>&#xA;</xsl:text>
    185195          </xsl:when>
  • LFS/master.sh

    r4fe29a2 re35e794  
    113113      # Insert instructions for unpacking the package and to set the PKGDIR variable.
    114114      wrt_unpack "$FILE"
     115      # If the testsuites must be run, initialize the log file
     116      [[ "$TEST" = "3" ]] && wrt_test_log "${this_script}"
     117      # If using optimizations, write the instructions
    115118      [[ "$OPTIMIZE" = "2" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
    116119    fi
     
    217220      FILE="$name-$vrs.tar.*"
    218221      wrt_unpack2 "$FILE"
     222      # If the testsuites must be run, initialize the log file
     223      case $name in
     224        binutils | gcc | glibc )
     225          [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
     226          ;;
     227        * )
     228          [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && wrt_test_log2 "${this_script}"
     229          ;;
     230      esac
     231      # If using optimizations, write the instructions
    219232      [[ "$OPTIMIZE" != "0" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
    220233    fi
Note: See TracChangeset for help on using the changeset viewer.