⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 running-an-ecos-test-case.html

📁 有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等
💻 HTML
字号:
<!-- Copyright (C) 2003 Red Hat, Inc.                                --><!-- This material may be distributed only subject to the terms      --><!-- and conditions set forth in the Open Publication License, v1.0  --><!-- or later (the latest version is presently available at          --><!-- http://www.opencontent.org/openpub/).                           --><!-- Distribution of the work or derivative of the work in any       --><!-- standard (paper) book form is prohibited unless prior           --><!-- permission is obtained from the copyright holder.               --><HTML><HEAD><TITLE>Running an eCos Test Case</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos User Guide"HREF="ecos-user-guide.html"><LINKREL="UP"TITLE="Programming With eCos"HREF="user-guide-programming.html"><LINKREL="PREVIOUS"TITLE="Ecosconfig on Windows and Linux Quick Start"HREF="using-ecosconfig-on-linux.html"><LINKREL="NEXT"TITLE="Using the command line"HREF="using-commandline-testcase.html"></HEAD><BODYCLASS="CHAPTER"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos User Guide</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="using-ecosconfig-on-linux.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="using-commandline-testcase.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="CHAPTER"><H1><ANAME="RUNNING-AN-ECOS-TEST-CASE">Chapter 12. Running an <SPANCLASS="PRODUCTNAME">eCos</SPAN> Test Case</H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="running-an-ecos-test-case.html#USING-CONFIGTOOL-TESTCASE">Using the <SPANCLASS="APPLICATION">Configuration Tool</SPAN></A></DT><DT><AHREF="using-commandline-testcase.html">Using the command line</A></DT><DT><AHREF="testing-filters.html">Testing Filters</A></DT></DL></DIV><P>In <AHREF="using-configtool-windows-linux.html">the Section called <I>Configuration Tool on Windows and Linux Quick Start</I> in Chapter 11</A> or <AHREF="using-ecosconfig-on-linux.html">the Section called <I>Ecosconfig on Windows and Linux Quick Start</I> in Chapter 11</A> you created the <SPANCLASS="PRODUCTNAME">eCos</SPAN> test casesas part of the build process. Now it is time to try and run one.</P><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="USING-CONFIGTOOL-TESTCASE">Using the <SPANCLASS="APPLICATION">Configuration Tool</SPAN></H1><P>Test executables that have been linked using the<SPANCLASS="emphasis"><ICLASS="EMPHASIS">Build-&gt;Tests</I></SPAN> operation against the currentconfiguration can be executed by selecting <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Tools-&#62;RunTests</I></SPAN>.</P><P>When a test run is invoked, a property sheet is displayed, see<AHREF="running-an-ecos-test-case.html#PROGRAMMING-RUN-TESTS">Figure 12-1</A>. Press the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">UncheckAll</I></SPAN> button and then find and check just one test,<TTCLASS="FILENAME">bin_sem0</TT> for example.</P><DIVCLASS="FIGURE"><ANAME="PROGRAMMING-RUN-TESTS"><P><B>Figure 12-1. Run tests</B></P><P><IMGSRC="pix/run-tests.png"></P></DIV><P>Now press the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Properties</I></SPAN> button to set upcommunications with the target. This will bring up a properties dialogshown in <AHREF="running-an-ecos-test-case.html#PROGRAMMING-RUN-PROPERTIES">Figure 12-2</A>. If you haveconnected the target board via a serial cable, check the<SPANCLASS="emphasis"><ICLASS="EMPHASIS">Serial</I></SPAN> radio button, and select the serial portand baud rate for the board. If the target is connected via thenetwork select the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">TCP/IP</I></SPAN> button and enter the IPaddress that the board has been given, and the port number (usually9000).</P><DIVCLASS="FIGURE"><ANAME="PROGRAMMING-RUN-PROPERTIES"><P><B>Figure 12-2. Properties dialog box</B></P><P><IMGSRC="pix/ch-properties-dialog.png"></P></DIV><P>Click OK on this dialog and go back to the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">RunTests</I></SPAN> dialog. Press the <SPANCLASS="emphasis"><ICLASS="EMPHASIS">Run</I></SPAN> button andthe selected test will be downloaded and run. The<SPANCLASS="emphasis"><ICLASS="EMPHASIS">Output</I></SPAN> tab will show you how this isprogressing. If it seems to stop for a long time, check that thetarget board is correctly connected, and that <SPANCLASS="PRODUCTNAME">eCos</SPAN> has been correctlyconfigured -- especially the start-up type.</P><P>When the program runs you should see a couple of line similar to this appear:</P><TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="PROGRAMLISTING">PASS:&lt;Binary Semaphore 0 OK&gt;EXIT:&lt;done&gt;</PRE></TD></TR></TABLE><P>This indicates that the test has run successfully.</P><P>See <AHREF="config-tool-test-execution.html">Chapter 22</A> forfurther details.</P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="using-ecosconfig-on-linux.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-user-guide.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="using-commandline-testcase.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Ecosconfig on Windows and Linux Quick Start</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="user-guide-programming.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Using the command line</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -