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/] [running-an-ecos-test-case.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
>Running an eCos Test Case</TITLE
>Running an eCos Test Case</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="Programming With eCos"
TITLE="Programming With eCos"
HREF="user-guide-programming.html"><LINK
HREF="user-guide-programming.html"><LINK
REL="PREVIOUS"
REL="PREVIOUS"
TITLE="Ecosconfig on Windows and Linux Quick Start"
TITLE="Ecosconfig on Windows and Linux Quick Start"
HREF="using-ecosconfig-on-linux.html"><LINK
HREF="using-ecosconfig-on-linux.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="Using the command line"
TITLE="Using the command line"
HREF="using-commandline-testcase.html"></HEAD
HREF="using-commandline-testcase.html"></HEAD
><BODY
><BODY
CLASS="CHAPTER"
CLASS="CHAPTER"
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-ecosconfig-on-linux.html"
HREF="using-ecosconfig-on-linux.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"
></TD
></TD
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="right"
ALIGN="right"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="using-commandline-testcase.html"
HREF="using-commandline-testcase.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="CHAPTER"
CLASS="CHAPTER"
><H1
><H1
><A
><A
NAME="RUNNING-AN-ECOS-TEST-CASE">Chapter 12. Running an <SPAN
NAME="RUNNING-AN-ECOS-TEST-CASE">Chapter 12. Running an <SPAN
CLASS="PRODUCTNAME"
CLASS="PRODUCTNAME"
>eCos</SPAN
>eCos</SPAN
> Test Case</H1
> Test Case</H1
><DIV
><DIV
CLASS="TOC"
CLASS="TOC"
><DL
><DL
><DT
><DT
><B
><B
>Table of Contents</B
>Table of Contents</B
></DT
></DT
><DT
><DT
><A
><A
HREF="running-an-ecos-test-case.html#USING-CONFIGTOOL-TESTCASE"
HREF="running-an-ecos-test-case.html#USING-CONFIGTOOL-TESTCASE"
>Using the <SPAN
>Using the <SPAN
CLASS="APPLICATION"
CLASS="APPLICATION"
>Configuration Tool</SPAN
>Configuration Tool</SPAN
></A
></A
></DT
></DT
><DT
><DT
><A
><A
HREF="using-commandline-testcase.html"
HREF="using-commandline-testcase.html"
>Using the command line</A
>Using the command line</A
></DT
></DT
><DT
><DT
><A
><A
HREF="testing-filters.html"
HREF="testing-filters.html"
>Testing Filters</A
>Testing Filters</A
></DT
></DT
></DL
></DL
></DIV
></DIV
><P
><P
>In <A
>In <A
HREF="using-configtool-windows-linux.html"
HREF="using-configtool-windows-linux.html"
>the Section called <I
>the Section called <I
>Configuration Tool on Windows and Linux Quick Start</I
>Configuration Tool on Windows and Linux Quick Start</I
> in Chapter 11</A
> in Chapter 11</A
> or <A
> or <A
HREF="using-ecosconfig-on-linux.html"
HREF="using-ecosconfig-on-linux.html"
>the Section called <I
>the Section called <I
>Ecosconfig on Windows and Linux Quick Start</I
>Ecosconfig on Windows and Linux Quick Start</I
> in Chapter 11</A
> in Chapter 11</A
> you created the <SPAN
> you created the <SPAN
CLASS="PRODUCTNAME"
CLASS="PRODUCTNAME"
>eCos</SPAN
>eCos</SPAN
> test cases
> test cases
as part of the build process. Now it is time to try and run one.</P
as part of the build process. Now it is time to try and run one.</P
><DIV
><DIV
CLASS="SECT1"
CLASS="SECT1"
><H1
><H1
CLASS="SECT1"
CLASS="SECT1"
><A
><A
NAME="USING-CONFIGTOOL-TESTCASE">Using the <SPAN
NAME="USING-CONFIGTOOL-TESTCASE">Using the <SPAN
CLASS="APPLICATION"
CLASS="APPLICATION"
>Configuration Tool</SPAN
>Configuration Tool</SPAN
></H1
></H1
><P
><P
>Test executables that have been linked using the
>Test executables that have been linked using the
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Build-&gt;Tests</I
>Build-&gt;Tests</I
></SPAN
></SPAN
> operation against the current
> operation against the current
configuration can be executed by selecting <SPAN
configuration can be executed by selecting <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Tools-&#62;Run
>Tools-&#62;Run
Tests</I
Tests</I
></SPAN
></SPAN
>.</P
>.</P
><P
><P
>When a test run is invoked, a property sheet is displayed, see
>When a test run is invoked, a property sheet is displayed, see
<A
<A
HREF="running-an-ecos-test-case.html#PROGRAMMING-RUN-TESTS"
HREF="running-an-ecos-test-case.html#PROGRAMMING-RUN-TESTS"
>Figure 12-1</A
>Figure 12-1</A
>. Press the <SPAN
>. Press the <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Uncheck
>Uncheck
All</I
All</I
></SPAN
></SPAN
> button and then find and check just one test,
> button and then find and check just one test,
<TT
<TT
CLASS="FILENAME"
CLASS="FILENAME"
>bin_sem0</TT
>bin_sem0</TT
> for example.</P
> for example.</P
><DIV
><DIV
CLASS="FIGURE"
CLASS="FIGURE"
><A
><A
NAME="PROGRAMMING-RUN-TESTS"><P
NAME="PROGRAMMING-RUN-TESTS"><P
><B
><B
>Figure 12-1. Run tests</B
>Figure 12-1. Run tests</B
></P
></P
><P
><P
><IMG
><IMG
SRC="pix/run-tests.png"></P
SRC="pix/run-tests.png"></P
></DIV
></DIV
><P
><P
>Now press the <SPAN
>Now press the <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Properties</I
>Properties</I
></SPAN
></SPAN
> button to set up
> button to set up
communications with the target. This will bring up a properties dialog
communications with the target. This will bring up a properties dialog
shown in <A
shown in <A
HREF="running-an-ecos-test-case.html#PROGRAMMING-RUN-PROPERTIES"
HREF="running-an-ecos-test-case.html#PROGRAMMING-RUN-PROPERTIES"
>Figure 12-2</A
>Figure 12-2</A
>. If you have
>. If you have
connected the target board via a serial cable, check the
connected the target board via a serial cable, check the
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Serial</I
>Serial</I
></SPAN
></SPAN
> radio button, and select the serial port
> radio button, and select the serial port
and baud rate for the board. If the target is connected via the
and baud rate for the board. If the target is connected via the
network select the <SPAN
network select the <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>TCP/IP</I
>TCP/IP</I
></SPAN
></SPAN
> button and enter the IP
> button and enter the IP
address that the board has been given, and the port number (usually
address that the board has been given, and the port number (usually
9000).</P
9000).</P
><DIV
><DIV
CLASS="FIGURE"
CLASS="FIGURE"
><A
><A
NAME="PROGRAMMING-RUN-PROPERTIES"><P
NAME="PROGRAMMING-RUN-PROPERTIES"><P
><B
><B
>Figure 12-2. Properties dialog box</B
>Figure 12-2. Properties dialog box</B
></P
></P
><P
><P
><IMG
><IMG
SRC="pix/ch-properties-dialog.png"></P
SRC="pix/ch-properties-dialog.png"></P
></DIV
></DIV
><P
><P
>Click OK on this dialog and go back to the <SPAN
>Click OK on this dialog and go back to the <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Run
>Run
Tests</I
Tests</I
></SPAN
></SPAN
> dialog. Press the <SPAN
> dialog. Press the <SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Run</I
>Run</I
></SPAN
></SPAN
> button and
> button and
the selected test will be downloaded and run. The
the selected test will be downloaded and run. The
<SPAN
<SPAN
CLASS="emphasis"
CLASS="emphasis"
><I
><I
CLASS="EMPHASIS"
CLASS="EMPHASIS"
>Output</I
>Output</I
></SPAN
></SPAN
> tab will show you how this is
> tab will show you how this is
progressing. If it seems to stop for a long time, check that the
progressing. If it seems to stop for a long time, check that the
target board is correctly connected, and that <SPAN
target board is correctly connected, and that <SPAN
CLASS="PRODUCTNAME"
CLASS="PRODUCTNAME"
>eCos</SPAN
>eCos</SPAN
> has been correctly
> has been correctly
configured -- especially the start-up type.</P
configured -- especially the start-up type.</P
><P
><P
>When the program runs you should see a couple of line similar to this appear:</P
>When the program runs you should see a couple of line similar to this appear:</P
><TABLE
><TABLE
BORDER="5"
BORDER="5"
BGCOLOR="#E0E0F0"
BGCOLOR="#E0E0F0"
WIDTH="70%"
WIDTH="70%"
><TR
><TR
><TD
><TD
><PRE
><PRE
CLASS="PROGRAMLISTING"
CLASS="PROGRAMLISTING"
>PASS:&lt;Binary Semaphore 0 OK&gt;
>PASS:&lt;Binary Semaphore 0 OK&gt;
EXIT:&lt;done&gt;</PRE
EXIT:&lt;done&gt;</PRE
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><P
><P
>This indicates that the test has run successfully.</P
>This indicates that the test has run successfully.</P
><P
><P
>See <A
>See <A
HREF="config-tool-test-execution.html"
HREF="config-tool-test-execution.html"
>Chapter 22</A
>Chapter 22</A
> for
> for
further details.</P
further details.</P
></DIV
></DIV
></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-ecosconfig-on-linux.html"
HREF="using-ecosconfig-on-linux.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="using-commandline-testcase.html"
HREF="using-commandline-testcase.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"
>Ecosconfig on Windows and Linux Quick Start</TD
>Ecosconfig on Windows and Linux Quick Start</TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="user-guide-programming.html"
HREF="user-guide-programming.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"
>Using the command line</TD
>Using the command line</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.