Changeset 28f4756


Ignore:
Timestamp:
08/05/2006 02:51:11 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
963fdae
Parents:
1e69324
Message:

Added config option to allow to bommb in test suites faiures.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • CLFS/clfs.xsl

    r1e69324 r28f4756  
    2424       1 = only Glibc, GCC and Binutils testsuites
    2525       2 = all testsuites
    26        3 = alias to 2 -->
     26       3 = alias to 2
     27  -->
    2728  <xsl:param name="testsuite" select="1"/>
     29
     30  <!-- Bomb on test suites failures?
     31       0 = no, I want to build the full system and review the logs
     32       1 = yes, bomb at the first test suite failure to can review the build dir
     33  -->
     34  <xsl:param name="bomb-testsuite" select="0"/>
    2835
    2936  <!-- Install vim-lang package? -->
     
    118125            contains(string(),'check')) and
    119126            ($testsuite = '2' or $testsuite = '3')">
    120       <xsl:value-of select="substring-before(string(),'make')"/>
    121       <xsl:text>make -k</xsl:text>
    122       <xsl:value-of select="substring-after(string(),'make')"/>
    123       <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     127      <xsl:choose>
     128        <xsl:when test="$bomb-testsuite = '0'">
     129          <xsl:value-of select="substring-before(string(),'make')"/>
     130          <xsl:text>make -k</xsl:text>
     131          <xsl:value-of select="substring-after(string(),'make')"/>
     132          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     133        </xsl:when>
     134        <xsl:otherwise>
     135          <xsl:apply-templates/>
     136          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     137        </xsl:otherwise>
     138      </xsl:choose>
    124139    </xsl:if>
    125140  </xsl:template>
     
    173188          <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
    174189          <xsl:otherwise>
    175             <xsl:apply-templates/>
     190            <xsl:if test="not(contains(string(),'check'))">
     191              <xsl:apply-templates/>
     192              <xsl:text>&#xA;</xsl:text>
     193            </xsl:if>
    176194            <xsl:if test="contains(string(),'check')">
    177               <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     195              <xsl:choose>
     196                <xsl:when test="$bomb-testsuite = '0'">
     197                  <xsl:value-of select="substring-before(string(),'check')"/>
     198                  <xsl:text>-k check</xsl:text>
     199                  <xsl:value-of select="substring-after(string(),'check')"/>
     200                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     201                </xsl:when>
     202                <xsl:otherwise>
     203                  <xsl:apply-templates/>
     204                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     205                </xsl:otherwise>
     206              </xsl:choose>
    178207            </xsl:if>
    179             <xsl:text>&#xA;</xsl:text>
    180208          </xsl:otherwise>
    181209        </xsl:choose>
     
    186214        <xsl:choose>
    187215          <xsl:when test="$testsuite != '0'">
    188             <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     216            <xsl:choose>
     217              <xsl:when test="$bomb-testsuite = '0'">
     218                <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     219              </xsl:when>
     220              <xsl:otherwise>
     221                <xsl:apply-templates/>
     222                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     223              </xsl:otherwise>
     224            </xsl:choose>
    189225          </xsl:when>
    190226        </xsl:choose>
     
    194230          <xsl:when test="$testsuite != '0'">
    195231            <xsl:value-of select="substring-before(string(),'&gt;g')"/>
    196             <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     232            <xsl:choose>
     233              <xsl:when test="$bomb-testsuite = '0'">
     234                <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     235              </xsl:when>
     236              <xsl:otherwise>
     237                <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     238              </xsl:otherwise>
     239            </xsl:choose>
    197240          </xsl:when>
    198241        </xsl:choose>
     
    203246          <xsl:when test="$testsuite != '0'">
    204247            <xsl:apply-templates/>
    205             <xsl:if test="contains(string(),'test_summary')">
    206               <xsl:text> &gt;&gt; $TEST_LOG</xsl:text>
    207             </xsl:if>
    208             <xsl:text>&#xA;</xsl:text>
     248            <xsl:text> &gt;&gt; $TEST_LOG&#xA;</xsl:text>
    209249          </xsl:when>
    210250        </xsl:choose>
  • HLFS/hlfs.xsl

    r1e69324 r28f4756  
    2727       1 = only chapter06 Glibc, GCC and Binutils testsuites
    2828       2 = all chapter06 testsuites
    29        3 = alias to 2 -->
     29       3 = alias to 2
     30  -->
    3031  <xsl:param name="testsuite" select="1"/>
     32
     33  <!-- Bomb on test suites failures?
     34       0 = no, I want to build the full system and review the logs
     35       1 = yes, bomb at the first test suite failure to can review the build dir
     36  -->
     37  <xsl:param name="bomb-testsuite" select="0"/>
    3138
    3239  <!-- Time zone -->
     
    136143                  contains(string(),'check')) and
    137144                  ($testsuite = '2' or $testsuite = '3')">
    138       <xsl:value-of select="substring-before(string(),'make')"/>
    139       <xsl:text>make -k</xsl:text>
    140       <xsl:value-of select="substring-after(string(),'make')"/>
    141       <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     145      <xsl:choose>
     146        <xsl:when test="$bomb-testsuite = '0'">
     147          <xsl:value-of select="substring-before(string(),'make')"/>
     148          <xsl:text>make -k</xsl:text>
     149          <xsl:value-of select="substring-after(string(),'make')"/>
     150          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     151        </xsl:when>
     152        <xsl:otherwise>
     153          <xsl:apply-templates/>
     154          <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     155        </xsl:otherwise>
     156      </xsl:choose>
    142157    </xsl:if>
    143158  </xsl:template>
     
    206221          <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
    207222          <xsl:otherwise>
    208             <xsl:apply-templates/>
     223            <xsl:if test="not(contains(string(),'check'))">
     224              <xsl:apply-templates/>
     225              <xsl:text>&#xA;</xsl:text>
     226            </xsl:if>
    209227            <xsl:if test="contains(string(),'check')">
    210               <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     228              <xsl:choose>
     229                <xsl:when test="$bomb-testsuite = '0'">
     230                  <xsl:value-of select="substring-before(string(),'check')"/>
     231                  <xsl:text>-k check</xsl:text>
     232                  <xsl:value-of select="substring-after(string(),'check')"/>
     233                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     234                </xsl:when>
     235                <xsl:otherwise>
     236                  <xsl:apply-templates/>
     237                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     238                </xsl:otherwise>
     239              </xsl:choose>
    211240            </xsl:if>
    212             <xsl:text>&#xA;</xsl:text>
    213241          </xsl:otherwise>
    214242        </xsl:choose>
     
    218246        <xsl:choose>
    219247          <xsl:when test="$testsuite != '0'">
    220             <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     248            <xsl:apply-templates/>
     249            <xsl:choose>
     250              <xsl:when test="$bomb-testsuite = '0'">
     251                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     252              </xsl:when>
     253              <xsl:otherwise>
     254                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     255              </xsl:otherwise>
     256            </xsl:choose>
    221257          </xsl:when>
    222258        </xsl:choose>
     
    227263          <xsl:when test="$testsuite != '0'">
    228264            <xsl:value-of select="substring-before(string(),'&gt; glibc-')"/>
    229             <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     265            <xsl:choose>
     266              <xsl:when test="$bomb-testsuite = '0'">
     267                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     268              </xsl:when>
     269              <xsl:otherwise>
     270                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     271              </xsl:otherwise>
     272            </xsl:choose>
    230273          </xsl:when>
    231274        </xsl:choose>
  • LFS/lfs.xsl

    r1e69324 r28f4756  
    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>
     
    161176          <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
    162177          <xsl:otherwise>
    163             <xsl:apply-templates/>
     178            <xsl:if test="not(contains(string(),'check'))">
     179              <xsl:apply-templates/>
     180              <xsl:text>&#xA;</xsl:text>
     181            </xsl:if>
    164182            <xsl:if test="contains(string(),'check')">
    165               <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true</xsl:text>
     183              <xsl:choose>
     184                <xsl:when test="$bomb-testsuite = '0'">
     185                  <xsl:value-of select="substring-before(string(),'check')"/>
     186                  <xsl:text>-k check</xsl:text>
     187                  <xsl:value-of select="substring-after(string(),'check')"/>
     188                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     189                </xsl:when>
     190                <xsl:otherwise>
     191                  <xsl:apply-templates/>
     192                  <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     193                </xsl:otherwise>
     194              </xsl:choose>
    166195            </xsl:if>
    167             <xsl:text>&#xA;</xsl:text>
    168196          </xsl:otherwise>
    169197        </xsl:choose>
     
    176204                    ancestor::chapter[@id='chapter-building-system']) or
    177205                    $testsuite = '3'">
    178             <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     206            <xsl:choose>
     207              <xsl:when test="$bomb-testsuite = '0'">
     208                <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     209              </xsl:when>
     210              <xsl:otherwise>
     211                <xsl:apply-templates/>
     212                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     213              </xsl:otherwise>
     214            </xsl:choose>
    179215          </xsl:when>
    180216        </xsl:choose>
     
    195231                    $testsuite = '3'">
    196232            <xsl:apply-templates/>
    197             <xsl:if test="contains(string(),'test_summary')">
    198               <xsl:text> &gt;&gt; $TEST_LOG</xsl:text>
    199             </xsl:if>
    200             <xsl:text>&#xA;</xsl:text>
     233            <xsl:text> &gt;&gt; $TEST_LOG&#xA;</xsl:text>
    201234          </xsl:when>
    202235        </xsl:choose>
  • common/common-functions

    r1e69324 r28f4756  
    728728                 --stringparam method $METHOD \
    729729                 --stringparam testsuite $TEST \
     730                 --stringparam bomb-testsuite $BOMB_TEST \
    730731                 --stringparam vim-lang $VIMLANG \
    731732                 --stringparam timezone $TIMEZONE \
     
    741742                 --xinclude \
    742743                 --stringparam testsuite $TEST \
     744                 --stringparam bomb-testsuite $BOMB_TEST \
    743745                 --stringparam vim-lang $VIMLANG \
    744746                 --stringparam timezone $TIMEZONE \
     
    754756                 --stringparam model $MODEL \
    755757                 --stringparam testsuite $TEST \
     758                 --stringparam bomb-testsuite $BOMB_TEST \
    756759                 --stringparam timezone $TIMEZONE \
    757760                 --stringparam page $PAGE \
     
    767770                 --xinclude \
    768771                 --stringparam testsuite $TEST \
     772                 --stringparam bomb-testsuite $BOMB_TEST \
    769773                 --stringparam vim-lang $VIMLANG \
    770774                 --stringparam timezone $TIMEZONE \
  • common/config

    r1e69324 r28f4756  
    5252TEST=1
    5353
     54#--- Bomb on test suites failures?
     55#  0 = no, I want to build the full system and review the logs
     56#  1 = yes, bomb at the first test suite failure to can review the build dir
     57BOMB_TEST=0
     58
    5459#--- Run the stripping phases  0(no)/1(yes)
    5560STRIP=1
  • common/func_validate_configs.sh

    r1e69324 r28f4756  
    8787
    8888  # First internal variables, then the ones that change the book's flavour, and lastly system configuration variables
    89   local -r  hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP         PAGE TIMEZONE LANG LC_ALL"
    90   local -r  clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD  ARCH  TARGET  TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG"
    91   local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE         ARCH  TARGET       OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG"
    92   local -r   lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                       TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL        VIMLANG PAGE TIMEZONE LANG"
     89  local -r  hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP         PAGE TIMEZONE LANG LC_ALL"
     90  local -r  clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD  ARCH  TARGET  TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG"
     91  local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE         ARCH  TARGET                 OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG"
     92  local -r   lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                       TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL        VIMLANG PAGE TIMEZONE LANG"
    9393
    9494  local -r ERROR_MSG_pt1='The variable \"${L_arrow}${config_param}${R_arrow}\" value ${L_arrow}${BOLD}${!config_param}${R_arrow} is invalid,'
     
    206206      ITERATIONS) [[ "$COMPARE" = "1" ]] && validate_against_str "x2x x3x x4x x5x" ;;
    207207      TEST)       validate_against_str "x0x x1x x2x x3x" ;;
     208      BOMB_TEST)  [[ ! "$TEST" = "0" ]] && validate_against_str "x0x x1x" ;;
    208209      OPTIMIZE)   validate_against_str "x0x x1x x2x" ;;
    209210      STRIP)      validate_against_str "x0x x1x" ;;
Note: See TracChangeset for help on using the changeset viewer.