Changeset c3b96a9


Ignore:
Timestamp:
02/14/2014 08:39:51 PM (10 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
2c4be7f
Parents:
5f6a6b4
Message:

Update clfs script generation to new book layout (remap="test" attribute).
Thanks to William Harrington for the patch

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLFS/clfs.xsl

    r5f6a6b4 rc3b96a9  
    185185      <!-- No interactive commands are needed if the .config file is the proper one -->
    186186      <xsl:when test="contains(string(),'menuconfig')"/>
    187       <!-- The Coreutils and Module-Init-Tools test suites are optional -->
    188       <xsl:when test="(ancestor::sect1[@id='ch-system-coreutils'] or
    189                 ancestor::sect1[@id='ch-system-module-init-tools']) and
    190                 (contains(string(),'check') or
    191                 contains(string(),'dummy'))">
     187<!-- test instructions -->
     188       <xsl:when test="@remap = 'test'">
    192189        <xsl:choose>
    193           <xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
     190          <xsl:when test="$testsuite = '0'"/>
     191          <xsl:when test="$testsuite = '1' and
     192                          not(ancestor::sect1[@id='ch-system-gcc']) and
     193                          not(ancestor::sect1[@id='ch-system-eglibc']) and
     194                          not(ancestor::sect1[@id='ch-system-gmp']) and
     195                          not(ancestor::sect1[@id='ch-system-mpfr']) and
     196                          not(ancestor::sect1[@id='ch-system-mpc']) and
     197                          not(ancestor::sect1[@id='ch-system-ppl']) and
     198                          not(ancestor::sect1[@id='ch-system-isl']) and
     199                          not(ancestor::sect1[@id='ch-system-cloog']) and
     200                          not(ancestor::sect1[@id='ch-system-cloog-ppl']) and
     201                          not(ancestor::sect1[@id='ch-system-binutils'])"/>
     202          <xsl:when test="$testsuite = '2' and
     203                          ancestor::chapter[@id='ch-temp-system']"/>
    194204          <xsl:otherwise>
    195             <xsl:if test="not(contains(string(),'check'))">
    196               <xsl:apply-templates/>
    197               <xsl:text>&#xA;</xsl:text>
    198             </xsl:if>
    199             <xsl:if test="contains(string(),'check')">
    200               <xsl:choose>
    201                 <xsl:when test="$bomb-testsuite = 'n'">
    202                   <xsl:value-of select="substring-before(string(),'check')"/>
    203                   <xsl:text>-k check</xsl:text>
    204                   <xsl:value-of select="substring-after(string(),'check')"/>
    205                   <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    206                 </xsl:when>
    207                 <xsl:otherwise>
    208                   <xsl:apply-templates/>
    209                   <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
    210                   <xsl:if test="contains(string(),' -k ')">
    211                     <xsl:text> || true</xsl:text>
    212                   </xsl:if>
    213                   <xsl:text>&#xA;</xsl:text>
    214                 </xsl:otherwise>
    215               </xsl:choose>
    216             </xsl:if>
     205            <xsl:choose>
     206              <xsl:when test="$bomb-testsuite = 'n'">
     207                <xsl:choose>
     208                  <!-- special case for eglibc -->
     209                  <xsl:when test="contains(string(), 'eglibc-check-log')">
     210                    <xsl:value-of
     211                       select="substring-before(string(),'2&gt;&amp;1')"/>
     212                    <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     213                  </xsl:when>
     214                  <!-- special case for procps-ng -->
     215                  <xsl:when test="contains(string(), 'pushd')">
     216                    <xsl:text>{ </xsl:text>
     217                    <xsl:apply-templates/>
     218                    <xsl:text>; } &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     219                  </xsl:when>
     220                  <xsl:when test="contains(string(), 'make -k')">
     221                    <xsl:apply-templates/>
     222                    <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     223                  </xsl:when>
     224                  <xsl:when test="contains(string(), 'make')">
     225                    <xsl:value-of select="substring-before(string(),'make')"/>
     226                    <xsl:text>make -k</xsl:text>
     227                    <xsl:value-of select="substring-after(string(),'make')"/>
     228                    <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     229                  </xsl:when>
     230                  <xsl:otherwise>
     231                    <xsl:apply-templates/>
     232                    <xsl:if test="not(contains(string(), '&gt;&gt;'))">
     233                      <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
     234                    </xsl:if>
     235                    <xsl:text>&#xA;</xsl:text>
     236                  </xsl:otherwise>
     237                </xsl:choose>
     238              </xsl:when>
     239              <xsl:otherwise>
     240                <!-- bomb-testsuite != 'n'-->
     241                <xsl:choose>
     242                  <!-- special case for eglibc -->
     243                  <xsl:when test="contains(string(), 'eglibc-check-log')">
     244                    <xsl:value-of
     245                       select="substring-before(string(),'2&gt;&amp;1')"/>
     246                    <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     247                  </xsl:when>
     248                  <!-- special case for gmp -->
     249                  <xsl:when test="contains(string(), 'tee gmp-check-log')">
     250                    <xsl:text>(</xsl:text>
     251                    <xsl:apply-templates/>
     252                    <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 &amp;&amp; exit $PIPESTATUS)&#xA;</xsl:text>
     253                  </xsl:when>
     254                  <!-- special case for procps-ng -->
     255                  <xsl:when test="contains(string(), 'pushd')">
     256                    <xsl:text>{ </xsl:text>
     257                    <xsl:apply-templates/>
     258                    <xsl:text>; } &gt;&gt; $TEST_LOG 2&gt;&amp;1&#xA;</xsl:text>
     259                  </xsl:when>
     260                  <xsl:when test="contains(string(), 'make -k')">
     261                    <xsl:apply-templates/>
     262                    <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     263                  </xsl:when>
     264                  <xsl:otherwise>
     265                    <xsl:apply-templates/>
     266                    <xsl:if test="not(contains(string(), '&gt;&gt;'))">
     267                      <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1</xsl:text>
     268                    </xsl:if>
     269                    <xsl:text>&#xA;</xsl:text>
     270                  </xsl:otherwise>
     271                </xsl:choose>
     272              </xsl:otherwise>
     273            </xsl:choose>
    217274          </xsl:otherwise>
    218275        </xsl:choose>
    219276      </xsl:when>
     277<!-- End of test instructions -->
     278
    220279      <!-- Fixing toolchain test suites run XXX more to fix -->
    221       <xsl:when test="contains(string(),'glibc-check-log')">
     280      <xsl:when test="contains(string(),'eglibc-check-log')">
    222281        <xsl:choose>
    223282          <xsl:when test="$testsuite != '0'">
  • Config.in

    r5f6a6b4 rc3b96a9  
    778778                default TST_1
    779779
    780                 config  TST_1
    781                         bool    "Only final system Glibc, GMP, MPFR, GCC and Binutils testsuites"
     780                config  TST_1
     781                        bool    "Only final critical testsuites" if !BOOK_CLFS2 && !BOOK_CLFS3
    782782
    783783                config  TST_2
Note: See TracChangeset for help on using the changeset viewer.