diff options
Diffstat (limited to 'doc/overview/x276.html')
-rw-r--r-- | doc/overview/x276.html | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/doc/overview/x276.html b/doc/overview/x276.html index ca3a1d3..55e2fb2 100644 --- a/doc/overview/x276.html +++ b/doc/overview/x276.html @@ -101,37 +101,37 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" ->dgt:~/dejagnu.test$ make check -make check-DEJAGNU -make[1]: Entering directory `/home/dgt/dejagnu.test' srcdir=`cd . && pwd`; export srcdir; \ -EXPECT=expect; export EXPECT; \ runtest=runtest; \ +>dgt:~/dejagnu.test$ make check +make check-DEJAGNU +make[1]: Entering directory `/home/dgt/dejagnu.test' srcdir=`cd . && pwd`; export srcdir; \ +EXPECT=expect; export EXPECT; \ runtest=runtest; \ if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then \ -$runtest --tool calc CALC=`pwd`/calc --srcdir ./testsuite ; \ -else echo "WARNING: could not find \`runtest'" 1>&2; :;\ -fi -WARNING: Couldn't find the global config file. -WARNING: Couldn't find tool init file -Test Run By dgt on Sun Nov 25 21:42:21 2001 +$runtest --tool calc CALC=`pwd`/calc --srcdir ./testsuite ; \ +else echo "WARNING: could not find \`runtest'" 1>&2; :;\ +fi +WARNING: Couldn't find the global config file. +WARNING: Couldn't find tool init file +Test Run By dgt on Sun Nov 25 21:42:21 2001 Native configuration is i586-pc-linux-gnu === calc tests === -Schedule of variations: +Schedule of variations: unix -Running target unix -Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. -Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. +Running target unix +Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. +Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using ./testsuite/config/unix.exp as tool-and-target-specific interface file. -Running ./testsuite/calc.test/calc.exp ... +Running ./testsuite/calc.test/calc.exp ... FAIL: multiply2 (bad match) === calc Summary === -# of expected passes 5 -# of unexpected failures 1 +# of expected passes 5 +# of unexpected failures 1 /home/Dgt/dejagnu.test/calc version Version: 1.1 -make[1]: *** [check-DEJAGNU] Fehler 1 +make[1]: *** [check-DEJAGNU] Fehler 1 make[1]: Leaving directory `/home/Dgt/dejagnu.test' make: *** [check-am] Fehler 2</PRE ></TD ></TR @@ -140,11 +140,11 @@ make[1]: Leaving directory `/home/Dgt/dejagnu.test' make: *** [check-am] Fehler ><P >Did you see the line “FAIL:“? The test cases for calc catch the bug in the calc.c file. Fix the error in calc.c later as the following examples assume a unchanged calc.c.</P ><P ->Examine the output files calc.sum and calc.log. +>Examine the output files calc.sum and calc.log. Try to understand the testcases written in ~/dejagnu.test/testsuite/calc.test/calc.exp. To understand Expect you might take a look at the book "Exploring Expect", -which is an excellent resource for learning and using Expect. (Pub: O'Reilly, ISBN 1-56592-090-2) -The book contains hundreds of examples and also includes a tutorial on Tcl. +which is an excellent resource for learning and using Expect. (Pub: O'Reilly, ISBN 1-56592-090-2) +The book contains hundreds of examples and also includes a tutorial on Tcl. Exploring Expect is 602 pages long. </P ></DIV ><DIV @@ -170,7 +170,7 @@ CLASS="PROGRAMLISTING" ></TR ></TABLE ><P ->Rerun make check. Test whether the output contains "I am ~/.dejagnurc". +>Rerun make check. Test whether the output contains "I am ~/.dejagnurc". Create ~/my_dejagnu.exp and insert the following line:</P ><TABLE BORDER="0" @@ -199,8 +199,8 @@ CLASS="PROGRAMLISTING" ></TR ></TABLE ><P ->Run “make check” again. The output should not contain -“WARNING: Couldn't find the global config file.”. +>Run “make check” again. The output should not contain +“WARNING: Couldn't find the global config file.”. Create the sub-directory lib. Create the file “calc.exp” in it and insert the following line:</P ><TABLE BORDER="0" @@ -215,8 +215,8 @@ CLASS="PROGRAMLISTING" ></TR ></TABLE ><P ->The last warning “WARNING: Couldn't find tool init file” -should not be part of the output of make check. +>The last warning “WARNING: Couldn't find tool init file” +should not be part of the output of make check. Create the directory ˜/boards. Create the file ˜/boards/standard.exp and insert the following line:</P ><TABLE BORDER="0" @@ -249,32 +249,32 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" ->dgt:~/dejagnu.test$ make check +>dgt:~/dejagnu.test$ make check <...> -fi -I am ~/.dejagnurc -I am ~/my_dejagnu.exp -I am lib/calc.exp -Test Run By dgt on Sun Nov 25 22:19:14 2001 +fi +I am ~/.dejagnurc +I am ~/my_dejagnu.exp +I am lib/calc.exp +Test Run By dgt on Sun Nov 25 22:19:14 2001 Native configuration is i586-pc-linux-gnu === calc tests === Using /home/Dgt/boards/standard.exp as standard board description\ -file for build. -I am ~/boards/standard.exp +file for build. +I am ~/boards/standard.exp Using /home/Dgt/boards/standard.exp as standard board description\ - file for host. -I am ~/boards/standard.exp + file for host. +I am ~/boards/standard.exp -Schedule of variations: +Schedule of variations: unix -Running target unix +Running target unix Using /home/Dgt/boards/standard.exp as standard board description\ - file for target. -I am ~/boards/standard.exp + file for target. +I am ~/boards/standard.exp Using /usr/share/dejagnu/baseboards/unix.exp as board description file\ -for target. +for target. <...></PRE ></TD ></TR @@ -282,8 +282,8 @@ for target. ></DIV ><P >It is up to you to decide when and where to use any of the above -mentioned config files for customizing. -This chapters showed you where and in which order the different config +mentioned config files for customizing. +This chapters showed you where and in which order the different config files are run.</P ></DIV ><DIV @@ -345,8 +345,8 @@ NAME="AEN312" ></H2 ><P >This test checks, whether the built-in shell command “echo Hello world” - will really write “Hello world” on the console. -Create the file ~/dejagnu.test/testsuite/calc.test/local_echo.exp. + will really write “Hello world” on the console. +Create the file ~/dejagnu.test/testsuite/calc.test/local_echo.exp. It should contain the following lines</P ><DIV CLASS="EXAMPLE" @@ -365,10 +365,10 @@ WIDTH="100%" ><TD ><PRE CLASS="PROGRAMLISTING" ->set test "Local Hello World" -send "echo Hello World" -expect { - -re "Hello World" { pass "$test" } +>set test "Local Hello World" +send "echo Hello World" +expect { + -re "Hello World" { pass "$test" } }</PRE ></TD ></TR @@ -437,4 +437,4 @@ VALIGN="top" ></DIV ></BODY ></HTML ->
\ No newline at end of file +> |