OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [user-guide/] [testing-filters.html] - Diff between revs 28 and 174

Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- This material may be distributed only subject to the terms      -->
<!-- This material may be distributed only subject to the terms      -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- or later (the latest version is presently available at          -->
<!-- or later (the latest version is presently available at          -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- permission is obtained from the copyright holder.               -->
<!-- permission is obtained from the copyright holder.               -->
<HTML
<HTML
><HEAD
><HEAD
><TITLE
><TITLE
>Testing Filters</TITLE
>Testing Filters</TITLE
><meta name="MSSmartTagsPreventParsing" content="TRUE">
><meta name="MSSmartTagsPreventParsing" content="TRUE">
<META
<META
NAME="GENERATOR"
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
"><LINK
REL="HOME"
REL="HOME"
TITLE="eCos User Guide"
TITLE="eCos User Guide"
HREF="ecos-user-guide.html"><LINK
HREF="ecos-user-guide.html"><LINK
REL="UP"
REL="UP"
TITLE="Running an eCos Test Case"
TITLE="Running an eCos Test Case"
HREF="running-an-ecos-test-case.html"><LINK
HREF="running-an-ecos-test-case.html"><LINK
REL="PREVIOUS"
REL="PREVIOUS"
TITLE="Using the command line"
TITLE="Using the command line"
HREF="using-commandline-testcase.html"><LINK
HREF="using-commandline-testcase.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="Building and Running Sample Applications"
TITLE="Building and Running Sample Applications"
HREF="building-and-running-sample-appliations.html"></HEAD
HREF="building-and-running-sample-appliations.html"></HEAD
><BODY
><BODY
CLASS="SECT1"
CLASS="SECT1"
BGCOLOR="#FFFFFF"
BGCOLOR="#FFFFFF"
TEXT="#000000"
TEXT="#000000"
LINK="#0000FF"
LINK="#0000FF"
VLINK="#840084"
VLINK="#840084"
ALINK="#0000FF"
ALINK="#0000FF"
><DIV
><DIV
CLASS="NAVHEADER"
CLASS="NAVHEADER"
><TABLE
><TABLE
SUMMARY="Header navigation table"
SUMMARY="Header navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TH
><TH
COLSPAN="3"
COLSPAN="3"
ALIGN="center"
ALIGN="center"
>eCos User Guide</TH
>eCos User Guide</TH
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="left"
ALIGN="left"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="using-commandline-testcase.html"
HREF="using-commandline-testcase.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="80%"
WIDTH="80%"
ALIGN="center"
ALIGN="center"
VALIGN="bottom"
VALIGN="bottom"
>Chapter 12. Running an <SPAN
>Chapter 12. Running an <SPAN
CLASS="PRODUCTNAME"
CLASS="PRODUCTNAME"
>eCos</SPAN
>eCos</SPAN
> Test Case</TD
> Test Case</TD
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="right"
ALIGN="right"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="building-and-running-sample-appliations.html"
HREF="building-and-running-sample-appliations.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"></DIV
WIDTH="100%"></DIV
><DIV
><DIV
CLASS="SECT1"
CLASS="SECT1"
><H1
><H1
CLASS="SECT1"
CLASS="SECT1"
><A
><A
NAME="TESTING-FILTERS">Testing Filters</H1
NAME="TESTING-FILTERS">Testing Filters</H1
><P
><P
>While most test cases today run solely in the target environment,
>While most test cases today run solely in the target environment,
some packages may require external testing infrastructure and/or
some packages may require external testing infrastructure and/or
feedback from the external environment to do complete testing.</P
feedback from the external environment to do complete testing.</P
><P
><P
>The serial package is an example of this. The network package
>The serial package is an example of this. The network package
also contains some tests that require programs to be run on a
also contains some tests that require programs to be run on a
host. See the network <I
host. See the network <I
CLASS="CITETITLE"
CLASS="CITETITLE"
>Tests and Demonstrations</I
>Tests and Demonstrations</I
>
>
section in the network documentation in the <I
section in the network documentation in the <I
CLASS="CITETITLE"
CLASS="CITETITLE"
><SPAN
><SPAN
CLASS="PRODUCTNAME"
CLASS="PRODUCTNAME"
>eCos</SPAN
>eCos</SPAN
> Reference
> Reference
Guide</I
Guide</I
>. Here we will concentrate on the serial tests since
>. Here we will concentrate on the serial tests since
these are applicable to more targets.</P
these are applicable to more targets.</P
><P
><P
>Since the serial line is also used for communication with
>Since the serial line is also used for communication with
GDB, a  filter is inserted in the communication pathway between
GDB, a  filter is inserted in the communication pathway between
GDB and the serial device which is connected to the hardware target.
GDB and the serial device which is connected to the hardware target.
The filter forwards all communication between the two, but also
The filter forwards all communication between the two, but also
listens for special commands embedded in the data stream from the
listens for special commands embedded in the data stream from the
target.</P
target.</P
><P
><P
>When such a command is seen, the filter stops forwarding data
>When such a command is seen, the filter stops forwarding data
to GDB from the target and enters a special mode. In this mode
to GDB from the target and enters a special mode. In this mode
the test case running on the target is able to control the filter,
the test case running on the target is able to control the filter,
commanding it to run various tests. While these tests run, GDB is
commanding it to run various tests. While these tests run, GDB is
isolated from the target.</P
isolated from the target.</P
><P
><P
>As the test completes (or if the filter detects a target crash)
>As the test completes (or if the filter detects a target crash)
the communication path between GDB and the hardware target is re-established,
the communication path between GDB and the hardware target is re-established,
allowing GDB to resume control.</P
allowing GDB to resume control.</P
><P
><P
>In theory, it is possible to extend the filter to provide
>In theory, it is possible to extend the filter to provide
a generic framework for other target-external testing components,
a generic framework for other target-external testing components,
thus decoupling the testing infrastructure from the (possibly limited)
thus decoupling the testing infrastructure from the (possibly limited)
communication means provided by the target (serial, JTAG, Ethernet,
communication means provided by the target (serial, JTAG, Ethernet,
etc). </P
etc). </P
><P
><P
>Another advantage is that the host tools do not need to
>Another advantage is that the host tools do not need to
know about the various testing environments required by the <SPAN
know about the various testing environments required by the <SPAN
CLASS="PRODUCTNAME"
CLASS="PRODUCTNAME"
>eCos</SPAN
>eCos</SPAN
>
>
packages, since all contact with the target continues to happen
packages, since all contact with the target continues to happen
via GDB.</P
via GDB.</P
></DIV
></DIV
><DIV
><DIV
CLASS="NAVFOOTER"
CLASS="NAVFOOTER"
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
SUMMARY="Footer navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="using-commandline-testcase.html"
HREF="using-commandline-testcase.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="ecos-user-guide.html"
HREF="ecos-user-guide.html"
ACCESSKEY="H"
ACCESSKEY="H"
>Home</A
>Home</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="building-and-running-sample-appliations.html"
HREF="building-and-running-sample-appliations.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
>Using the command line</TD
>Using the command line</TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="running-an-ecos-test-case.html"
HREF="running-an-ecos-test-case.html"
ACCESSKEY="U"
ACCESSKEY="U"
>Up</A
>Up</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
>Building and Running Sample Applications</TD
>Building and Running Sample Applications</TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
></BODY
></BODY
></HTML
></HTML
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.