- Timestamp:
- 03/09/2006 10:23:47 PM (18 years ago)
- Branches:
- experimental
- Children:
- 12a5707
- Parents:
- 1b9148c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/lfs.xsl
r1b9148c r6db1464 14 14 <!-- XSLT stylesheet to create shell scripts from LFS books. --> 15 15 16 <!-- Run optional test suites? --> 17 <xsl:param name="testsuite" select="0"/> 18 19 <!-- Run toolchain test suites? --> 20 <xsl:param name="toolchaintest" select="1"/> 16 <!-- Run test suites? 17 0 = none 18 1 = only chapter06 Glibc, GCC and Binutils testsuites 19 2 = all chapter06 testsuites 20 3 = all chapter05 and chapter06 testsuites--> 21 <xsl:param name="testsuite" select="1"/> 21 22 22 23 <!-- Install vim-lang package? --> … … 79 80 </xsl:if> 80 81 <xsl:apply-templates select=".//para/userinput | .//screen"/> 82 <xsl:if test="$testsuite='3' and @id='ch-tools-glibc'"> 83 <xsl:copy-of select="//sect1[@id='ch-system-glibc']/sect2[2]/screen[@role='nodump']"/> 84 <xsl:text>
</xsl:text> 85 </xsl:if> 81 86 <xsl:text>exit</xsl:text> 82 87 </exsl:document> … … 85 90 86 91 <xsl:template match="screen"> 87 <xsl:if test="child::* = userinput"> 88 <xsl:choose> 89 <xsl:when test="@role = 'nodump'"/> 90 <xsl:otherwise> 91 <xsl:apply-templates select="userinput" mode="screen"/> 92 </xsl:otherwise> 93 </xsl:choose> 92 <xsl:if test="child::* = userinput and not(@role = 'nodump')"> 93 <xsl:apply-templates select="userinput" mode="screen"/> 94 94 </xsl:if> 95 95 </xsl:template> 96 96 97 97 <xsl:template match="para/userinput"> 98 <xsl:if test="$testsuite != '0' and 99 (contains(string(),'test') or 100 contains(string(),'check'))"> 98 <xsl:if test="(contains(string(),'test') or 99 contains(string(),'check')) and 100 (($testsuite = '2' and 101 ancestor::chapter[@id='chapter-building-system']) or 102 $testsuite = '3')"> 101 103 <xsl:value-of select="substring-before(string(),'make')"/> 102 104 <xsl:text>make -k</xsl:text> … … 128 130 </xsl:when> 129 131 <!-- The Coreutils and Module-Init-Tools test suites are optional --> 130 <xsl:when test=" $testsuite = '0'and132 <xsl:when test="($testsuite = '0' or $testsuite = '1') and 131 133 (ancestor::sect1[@id='ch-system-coreutils'] or 132 134 ancestor::sect1[@id='ch-system-module-init-tools']) and … … 137 139 string() = 'make -k check'"> 138 140 <xsl:choose> 139 <xsl:when test="$toolchaintest = '0'"/> 140 <xsl:otherwise> 141 <xsl:when test="(($testsuite = '1' or $testsuite = '2') and 142 ancestor::chapter[@id='chapter-building-system']) or 143 $testsuite = '3'"> 141 144 <xsl:text>make -k check || true</xsl:text> 142 145 <xsl:text>
</xsl:text> 143 </xsl: otherwise>146 </xsl:when> 144 147 </xsl:choose> 145 148 </xsl:when> 146 149 <xsl:when test="contains(string(),'glibc-check-log')"> 147 150 <xsl:choose> 148 <xsl:when test="$toolchaintest = '0'"/> 149 <xsl:otherwise> 151 <xsl:when test="$testsuite != '0'"> 150 152 <xsl:value-of select="substring-before(string(),'
')"/> 151 153 <xsl:text> || true
</xsl:text> 152 154 <xsl:value-of select="substring-after(string(),'
')"/> 153 155 <xsl:text>
</xsl:text> 154 </xsl: otherwise>156 </xsl:when> 155 157 </xsl:choose> 156 158 </xsl:when> … … 158 160 contains(string(),'expect -c')"> 159 161 <xsl:choose> 160 <xsl:when test="$toolchaintest = '0'"/> 161 <xsl:otherwise> 162 <xsl:when test="(($testsuite = '1' or $testsuite = '2') and 163 ancestor::chapter[@id='chapter-building-system']) or 164 $testsuite = '3'"> 162 165 <xsl:apply-templates/> 163 166 <xsl:text>
</xsl:text> 164 </xsl: otherwise>167 </xsl:when> 165 168 </xsl:choose> 166 169 </xsl:when>
Note:
See TracChangeset
for help on using the changeset viewer.