Changeset e35e794


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.

Files:
9 edited

Legend:

Unmodified
Added
Removed
  • CLFS/clfs.xsl

    r4fe29a2 re35e794  
    3131
    3232  <!-- Time zone -->
    33   <xsl:param name="timezone" select="America/Toronto"/>
     33  <xsl:param name="timezone" select="GMT"/>
    3434
    3535  <!-- Page size -->
     
    3737
    3838  <!-- Locale settings -->
    39   <xsl:param name="lang" select="en_CA"/>
     39  <xsl:param name="lang" select="C"/>
    4040
    4141  <xsl:template match="/">
     
    121121      <xsl:text>make -k</xsl:text>
    122122      <xsl:value-of select="substring-after(string(),'make')"/>
    123       <xsl:text> || true&#xA;</xsl:text>
     123      <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    124124    </xsl:if>
    125125  </xsl:template>
     
    166166      <xsl:when test="contains(string(),'menuconfig')"/>
    167167      <!-- The Coreutils and Module-Init-Tools test suites are optional -->
    168       <xsl:when test="($testsuite = '0' or $testsuite = '1') and
    169                 (ancestor::sect1[@id='ch-system-coreutils'] or
     168      <xsl:when test="(ancestor::sect1[@id='ch-system-coreutils'] or
    170169                ancestor::sect1[@id='ch-system-module-init-tools']) and
    171170                (contains(string(),'check') or
    172                 contains(string(),'dummy'))"/>
     171                contains(string(),'dummy'))">
     172        <xsl:choose>
     173          <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
     174          <xsl:otherwise>
     175            <xsl:apply-templates/>
     176            <xsl:if test="contains(string(),'check')">
     177              <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     178            </xsl:if>
     179            <xsl:text>&#xA;</xsl:text>
     180          </xsl:otherwise>
     181        </xsl:choose>
     182      </xsl:when>
    173183      <!-- Fixing toolchain test suites run -->
    174184      <xsl:when test="string() = 'make check' or
     
    176186        <xsl:choose>
    177187          <xsl:when test="$testsuite != '0'">
    178             <xsl:text>make -k check || true&#xA;</xsl:text>
     188            <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    179189          </xsl:when>
    180190        </xsl:choose>
     
    183193        <xsl:choose>
    184194          <xsl:when test="$testsuite != '0'">
    185             <xsl:value-of select="substring-before(string(),';')"/>
    186             <xsl:text> || true&#xA;</xsl:text>
    187             <xsl:value-of select="substring-after(string(),';')"/>
    188             <xsl:text>&#xA;</xsl:text>
     195            <xsl:value-of select="substring-before(string(),'&gt;g')"/>
     196            <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    189197          </xsl:when>
    190198        </xsl:choose>
     
    195203          <xsl:when test="$testsuite != '0'">
    196204            <xsl:apply-templates/>
     205            <xsl:if test="contains(string(),'test_summary')">
     206              <xsl:text> &gt;&gt; $TEST_LOG</xsl:text>
     207            </xsl:if>
    197208            <xsl:text>&#xA;</xsl:text>
    198209          </xsl:when>
  • CLFS/master.sh

    r4fe29a2 re35e794  
    543543      FILE="$name-$vrs.tar.*"
    544544      wrt_unpack2 "$FILE"
     545      # If the testsuites must be run, initialize the log file
     546      case $name in
     547        binutils | gcc | glibc )
     548          [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
     549          ;;
     550        * )
     551          [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && wrt_test_log2 "${this_script}"
     552          ;;
     553      esac
     554      # If using optimizations, write the instructions
    545555      [[ "$OPTIMIZE" != "0" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
    546556    fi
     
    646656      FILE="$name-$vrs.tar.*"
    647657      wrt_unpack3 "$FILE"
     658      # If the testsuites must be run, initialize the log file
     659      case $name in
     660        binutils | gcc | glibc )
     661          [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
     662          ;;
     663        * )
     664          [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && wrt_test_log2 "${this_script}"
     665          ;;
     666      esac
     667      # If using optimizations, write the instructions
    648668      [[ "$OPTIMIZE" != "0" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
    649669    fi
  • HLFS/hlfs.xsl

    r4fe29a2 re35e794  
    3131
    3232  <!-- Time zone -->
    33   <xsl:param name="timezone" select="America/Toronto"/>
     33  <xsl:param name="timezone" select="GMT"/>
    3434
    3535  <!-- Page size -->
     
    3737
    3838  <!-- Locale settings -->
    39   <xsl:param name="lang" select="en_CA"/>
    40   <xsl:param name="lc_all" select="en_CA"/>
     39  <xsl:param name="lang" select="C"/>
     40  <xsl:param name="lc_all" select="C"/>
    4141
    4242  <xsl:template match="/">
     
    145145      <xsl:choose>
    146146        <xsl:when test="ancestor::sect1[@id='ch-system-gcc']">
    147           <xsl:text>make -k check || true&#xA;</xsl:text>
     147          <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    148148        </xsl:when>
    149149        <xsl:otherwise>
     
    151151          <xsl:text>make -k</xsl:text>
    152152          <xsl:value-of select="substring-after(string(),'make')"/>
    153           <xsl:text> || true&#xA;</xsl:text>
     153          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    154154        </xsl:otherwise>
    155155      </xsl:choose>
     
    212212      </xsl:when>
    213213      <!-- The Coreutils and Module-Init-Tools test suites are optional -->
    214       <xsl:when test="($testsuite = '0' or $testsuite = '1') and
    215                 (ancestor::sect1[@id='ch-system-coreutils'] or
     214      <xsl:when test="(ancestor::sect1[@id='ch-system-coreutils'] or
    216215                ancestor::sect1[@id='ch-system-module-init-tools']) and
    217216                (contains(string(),'check') or
    218217                contains(string(),'distclean') or
    219                 contains(string(),'dummy'))"/>
     218                contains(string(),'dummy'))">
     219        <xsl:choose>
     220          <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
     221          <xsl:otherwise>
     222            <xsl:apply-templates/>
     223            <xsl:if test="contains(string(),'check')">
     224              <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     225            </xsl:if>
     226            <xsl:text>&#xA;</xsl:text>
     227          </xsl:otherwise>
     228        </xsl:choose>
     229      </xsl:when>
    220230      <!-- Fixing toolchain test suites run -->
    221231      <xsl:when test="string() = 'make check' or
     
    225235                    ancestor::chapter[@id='chapter-building-system']) or
    226236                    $testsuite = '3'">
    227             <xsl:text>make -k check || true</xsl:text>
    228             <xsl:text>&#xA;</xsl:text>
     237            <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    229238          </xsl:when>
    230239        </xsl:choose>
     
    235244          <xsl:when test="$testsuite != '0'">
    236245            <xsl:value-of select="substring-before(string(),'make check')"/>
    237             <xsl:text>make -k check || true&#xA;</xsl:text>
     246            <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    238247          </xsl:when>
    239248        </xsl:choose>
  • HLFS/master.sh

    r4fe29a2 re35e794  
    144144      case $this_script in
    145145        *binutils* )
    146           wrt_unpack "$FILE" 1 ;; # Do not delete an existing package directories
    147         *)
    148           wrt_unpack "$FILE" ;;
     146          wrt_unpack "$FILE" 1 ;; # Do not delete an existing package directories
     147        *)
     148          wrt_unpack "$FILE" ;;
    149149      esac
     150      # If the testsuites must be run, initialize the log file
     151      [[ "$TEST" = "3" ]] && wrt_test_log "${this_script}"
     152      # If using optimizations, write the instructions
    150153      [[ "$OPTIMIZE" = "2" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
    151154    fi
     
    315318      wrt_unpack2 "$FILE"
    316319      wrt_target_vars
     320      # If the testsuites must be run, initialize the log file
     321      case $name in
     322        binutils | gcc | glibc )
     323          [[ "$TEST" != "0" ]] && wrt_test_log2 "${this_script}"
     324          ;;
     325        * )
     326          [[ "$TEST" = "2" ]] || [[ "$TEST" = "3" ]] && wrt_test_log2 "${this_script}"
     327          ;;
     328      esac
     329      # If using optimizations, write the instructions
    317330      [[ "$OPTIMIZE" != "0" ]] &&  wrt_optimize "$name" && wrt_makeflags "$name"
    318331    fi
  • 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
  • common/common-functions

    r4fe29a2 re35e794  
    277277cat  << EOF
    278278        @\$(call unpack2,$FILE)
    279         @ROOT=\`head -n1 \$(SRC)/\$(PKG_LST) | sed 's@^./@@;s@/.*@@'\` && \\
     279        @ROOT=\`head -n1 \$(MOUNT_PT)\$(SRC)/\$(PKG_LST) | sed 's@^./@@;s@/.*@@'\` && \\
    280280        echo "export PKGDIR=\$(SRC)/\$\$ROOT" > envars
    281281EOF
     
    298298        @ROOT=\`head -n1 \$(SRC)/\$(PKG_LST) | sed 's@^./@@;s@/.*@@'\` && \\
    299299        echo "export PKGDIR=\$(SRC)/\$\$ROOT" > envars
     300EOF
     301) >> $MKFILE.tmp
     302}
     303
     304#----------------------------------#
     305wrt_test_log() {                   # Initialize testsuite log file
     306#----------------------------------#
     307  local TESTLOGFILE=$1
     308(
     309cat  << EOF
     310        @echo "export TEST_LOG=$TESTLOGDIR/$TESTLOGFILE" >> envars && \\
     311        su - lfs -c "echo -e '\n\`date\`\n' >$TESTLOGDIR/$TESTLOGFILE"
     312EOF
     313) >> $MKFILE.tmp
     314}
     315
     316#----------------------------------#
     317wrt_test_log2() {                  #
     318#----------------------------------#
     319  local TESTLOGFILE=$1
     320(
     321cat  << EOF
     322        @echo "export TEST_LOG=/$SCRIPT_ROOT/test-logs/$TESTLOGFILE" >> envars && \\
     323        echo -e "\n\`date\`\n" >test-logs/$TESTLOGFILE
    300324EOF
    301325) >> $MKFILE.tmp
  • common/config

    r4fe29a2 re35e794  
    9090#--- Working directories
    9191SCRIPT_ROOT=jhalfs
    92 JHALFSDIR=$BUILDDIR/$SCRIPT_ROOT
    93    LOGDIR=$JHALFSDIR/logs
     92  JHALFSDIR=$BUILDDIR/$SCRIPT_ROOT
     93     LOGDIR=$JHALFSDIR/logs
     94 TESTLOGDIR=$JHALFSDIR/test-logs
    9495
    9596#--- File listing package contents (from where package sources dir is extracted)
  • master.sh

    r4fe29a2 re35e794  
    139139          JHALFSDIR=$BUILDDIR/${SCRIPT_ROOT}
    140140          LOGDIR=$JHALFSDIR/logs
     141          TESTLOGDIR=$JHALFSDIR/test-logs
    141142          MKFILE=$JHALFSDIR/Makefile
    142143          ;;
     
    416417check_version "3.0"   "$BASH_VERSION"      "BASH"
    417418check_version "3.0"   "`gcc -dumpversion`" "GCC"
    418 tarVer=`tar --version`
    419 check_version "1.15.0" "${tarVer##* }"      "TAR"
     419tarVer=`tar --version | head -n1 | cut -d " " -f4`
     420check_version "1.15.0" "${tarVer}"      "TAR"
    420421echo "${SD_BORDER}${nl_}"
    421422
     
    480481>$LOGDIR/$LOG
    481482#
     483[[ "$TEST" != "0" ]] && [[ ! -d $TESTLOGDIR ]] && install -d -m 1777 $TESTLOGDIR
    482484#
    483485if [[ "$PWD" != "$JHALFSDIR" ]]; then
    484486  cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/
     487  #
    485488  [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/
     489  #
    486490  if [[ "$COMPARE" != "0" ]] ; then
    487491    mkdir -p $JHALFSDIR/extras
Note: See TracChangeset for help on using the changeset viewer.