<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<!--
// // See license.txt for license information. // // tool_test_test_boost_0103100.xml // // 12-Jan-2006 phamilton Created //
-->

<web xmlns="urn:xmlliterate.schema" name="web">
    <language>C++</language>
    <attributes>
        <attribute name="boost_0103100"/>
    </attributes>
    <includes>
        <cppinclude name="boost/test/test_tools.hpp"/>
        <cppinclude name="boost/test/unit_test_suite.hpp"/>
        <cppinclude name="../cppxmlobj/xmlobj.hpp"/>
        <cppinclude name="../cppxmlobj/xmlobj_jscript_navigate.hpp"/>
        <cppinclude name="../cppxmlobj/xmlobj_read.hpp"/>
        <cppinclude name="../cppxmlobj/xmlobj_context.hpp"/>
        <cppinclude name="tools/tool.hpp"/>
    </includes>
    <using>
        <namespaceentry name="boost::unit_test_framework"/>
        <namespaceentry name="boost::test_toolbox"/>
    </using>
    <sections>
        <websection name="root">
            <description>The main handler for the tool.</description>
            <sections>
                <websource>
                    <code> output_test_stream console; // create a navigator (we use jscript style), and a context ph::xmlobj::xmlobj_jscript_navigate n(&console, false); std::auto_ptr<ph::xmlobj::xmlobj_context> context(create_context(&n)); // read in the schema test. ph::xmlobj::xmlobj_ptr<$(namespace_tools_cpp)::tool> tool( ph::xmlobj::xmlobj_read_file<$(namespace_tools_cpp)::tool>( _toolfile, context.get(), &console, false, 0)); BOOST_CHECK(console.is_empty()); BOOST_REQUIRE(tool.get()); output_test_stream output(_matchfile, _match); BOOST_CHECK(tool->process(&std::cout, &output)); BOOST_CHECK(output.match_pattern()); /</code>
                </websource>
            </sections>
        </websection>
    </sections>
</web>