LFS: Fixed Bash testsuite run.
This commit is contained in:
parent
459220b961
commit
49d4af4657
1 changed files with 27 additions and 5 deletions
30
LFS/lfs.xsl
30
LFS/lfs.xsl
|
@ -177,18 +177,21 @@
|
||||||
<xsl:text>make mrproper
</xsl:text>
|
<xsl:text>make mrproper
</xsl:text>
|
||||||
<xsl:text>cp -v ../kernel-config .config
</xsl:text>
|
<xsl:text>cp -v ../kernel-config .config
</xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<!-- The Coreutils and Module-Init-Tools test suites are optional -->
|
<!-- The Bash, Coreutils, and Module-Init-Tools test suites are optional -->
|
||||||
<xsl:when test="(ancestor::sect1[@id='ch-system-coreutils'] or
|
<xsl:when test="(ancestor::sect1[@id='ch-system-coreutils'] or
|
||||||
|
ancestor::sect1[@id='ch-system-bash'] or
|
||||||
ancestor::sect1[@id='ch-system-module-init-tools']) and
|
ancestor::sect1[@id='ch-system-module-init-tools']) and
|
||||||
(contains(string(),'check') or
|
(contains(string(),'check') or contains(string(),'nobody')
|
||||||
contains(string(),'dummy'))">
|
or contains(string(),'dummy'))">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
|
<xsl:when test="$testsuite = '0' or $testsuite = '1'"/>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:if test="not(contains(string(),'check'))">
|
<xsl:if test="not(contains(string(),'check')) and
|
||||||
|
not(contains(string(),'tests'))">
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
<xsl:text>
</xsl:text>
|
<xsl:text>
</xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<!-- Coreutils and Module-Init-Tools -->
|
||||||
<xsl:if test="contains(string(),'check')">
|
<xsl:if test="contains(string(),'check')">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$bomb-testsuite = 'n'">
|
<xsl:when test="$bomb-testsuite = 'n'">
|
||||||
|
@ -207,6 +210,25 @@
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<!-- Bash -->
|
||||||
|
<xsl:if test="contains(string(),'tests')">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="$bomb-testsuite = 'n'">
|
||||||
|
<xsl:value-of select="substring-before(string(),'tests')"/>
|
||||||
|
<xsl:text>-k tests</xsl:text>
|
||||||
|
<xsl:value-of select="substring-after(string(),'tests')"/>
|
||||||
|
<xsl:text> >> $TEST_LOG 2>&1 || true
</xsl:text>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
<xsl:text> >> $TEST_LOG 2>&1</xsl:text>
|
||||||
|
<xsl:if test="contains(string(),' -k ')">
|
||||||
|
<xsl:text> || true</xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:text>
</xsl:text>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:if>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
Reference in a new issue