Quellcode durchsuchen

meta:test_structure test case

[SVN r36998]
Misha Bergal vor 19 Jahren
Ursprung
Commit
0a64240b84

+ 6 - 0
tools/regression/xsl_reports/test/test-components/test_test_structure/a.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<test-run source="CVS" runner="BoostConsulting" timestamp="2007-01-13T06:25:21Z" platform="Windows" tag="RC_1_34_0" run-type="incremental">
+    <comment>some_comment</comment>
+    <test-log library="date_time" test-name="testdate_dll" test-type="run" test-program="libs/date_time/test/gregorian/testdate.cpp" target-directory="boost/bin.v2/libs/date_time/test/testdate_dll.test/msvc-8.0.m/rls/adrs-mdl-64/instr-set-optrn/thrd-mlt" toolset="required_toolset" show-run-output="false"/>
+    <test-log library="date_time" test-name="testdate_dll" test-type="run" test-program="libs/date_time/test/gregorian/testdate.cpp" target-directory="boost/bin.v2/libs/date_time/test/testdate_dll.test/msvc-8.0.m/rls/adrs-mdl-64/instr-set-optrn/thrd-mlt" toolset="not_required_toolset" show-run-output="false"/>    
+</test-run>

+ 2 - 0
tools/regression/xsl_reports/test/test-components/test_test_structure/expected/a.xml

@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<results xmlns:exsl="http://exslt.org/common"><platforms><platform name="Windows"><runs><run runner="BoostConsulting" timestamp="2007-01-13T06:25:21Z" platform="Windows" run-type="incremental" source="CVS"><comment>some_comment</comment></run></runs></platform></platforms><platforms><platform name="Windows"><runs><run runner="BoostConsulting" timestamp="2007-01-13T06:25:21Z" platform="Windows" run-type="incremental" source="CVS" toolset="not_required_toolset"><comment>some_comment</comment><toolset name="not_required_toolset" required="no" required_sort_hint="sort hint B"/><toolset name="required_toolset" required="no" required_sort_hint="sort hint B"/></run></runs></platform></platforms></results>

+ 6 - 0
tools/regression/xsl_reports/test/test-components/test_test_structure/explicit-failures-markup.xml.test

@@ -0,0 +1,6 @@
+<explicit-failures-markup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="explicit-failures.xsd">
+
+    <mark-toolset name="required_toolset" status="required"/>
+
+</explicit-failures-markup>

+ 22 - 0
tools/regression/xsl_reports/test/test-components/test_test_structure/test-driver.xsl

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+    xmlns:func="http://exslt.org/functions"
+    xmlns:meta="http://www.meta-comm.com"
+    extension-element-prefixes="func"
+    xmlns:exsl="http://exslt.org/common"
+
+    exclude-result-prefixes="func meta" version="1.0">
+
+
+    <xsl:import href="../../../xsl/v2/common.xsl"/>
+    <xsl:param name="failures_markup_file" select="'explicit-failures-markup.xml'" />
+    <xsl:variable name="explicit_markup" select="document( $failures_markup_file )"/>
+
+    <xsl:template match="/">
+        <results>
+        <xsl:copy-of select="meta:test_structure(   ., 'yes', $explicit_markup )"/>
+        <xsl:copy-of select="meta:test_structure( ., 'no', $explicit_markup )"/>
+        </results>
+    </xsl:template>
+    
+</xsl:stylesheet>

粤ICP备19079148号