[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Learning DejaGnu

From: Braden McDaniel
Subject: Re: Learning DejaGnu
Date: Fri, 27 Feb 2004 01:34:04 -0500

On Wed, 2004-02-25 at 01:50, Ben Elliston wrote:
> Braden McDaniel <address@hidden> writes:
> > I am using automake, and I've gotten that far. I still don't
> > understand what controls whether a directory under testsuite is
> > recursed into. As I mentioned above, in the calc example, if I
> > rename the subdirectory "calc.test" to "", things stop
> > working. I don't understand why that is; so I don't understand why
> > things aren't working for "mytool.whatever".
> runtest enters any test directory that matches $tool.<whatever>, as
> you suggest.  I just tried the calc example, renamking calc.test to
> and the tests were still run.  I don't know what you're doing
> differently.


I don't either. But now when I try it, it works.

I have gotten as far as getting DejaGnu to run the .exp file with my
test in it. But the test doesn't appear to register. In
parse/testsuite/parse.proto/parse.exp, I have (copied from the manual):

        set test "Local Hello World"
        send "echo Hello World"
        expect {
           -re "Hello World"  { pass "$test" }

When "make check" gets to this, I get

 to file list
        echo Hello Worldboard_info target exists name
        board_info target name
        getting unix name
        board_info unix exists name
        board_info unix exists protocol
        board_info unix protocol
        getting unix protocol
        call_remote  close unix
        board_info unix connect
        getting unix connect
        call_remote calling standard_close
        board_info unix exists fileid
        board_info unix file_transfer
        getting unix file_transfer
        board_info target name
        getting unix name
                        === parse Summary ===
        runtest completed at Fri Feb 27 00:43:31 2004

Why am I seeing the "echo Hello World", but no indication that there was
an actual test?

Thanks for your help...

Braden McDaniel                           e-mail: <address@hidden>
<>                    Jabber: <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]