[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: my setup
From: |
Baurzhan Ismagulov |
Subject: |
Re: my setup |
Date: |
Mon, 8 May 2006 10:34:09 +0200 |
User-agent: |
Mutt/1.5.11+cvs20060403 |
Hello Rui,
On Mon, May 08, 2006 at 10:24:37AM +0200, Rui Machado wrote:
> >In Makefile.am:
> >
> >check_PROGRAMS = prj/testsuite/a/a1 prj/testsuite/a/a2 prj/testsuite/b/b1
> >prj/testsuite/b/b2
>
> I'm no expert with autotools. So this makes sure that those programs are
> compiled (a1,a2,b1,b2) correct?
Yes.
> This is better than what I have, but I still have to add them here, run
> configure and make right?
Yes. Although if the directory is already configured, autotools would
re-run whatever necessary automatically.
> I wanted something even more... "smart" :) You just add the test directory
> (like a c in your example) and it automatically gets "detected" by Dejagnu,
> is compiled and run.
> Another thing I would like is to have the testcases compiled when you do
> make check and with the possibility of using different compiler for the
> testcases.
Dejagnu detects subdirectories and runs *.exp in them. You can write
my_spawn so that it finds the test cases, compiles, and executes them; I
am not aware of any procedure that already does that, although I suspect
looking at gcc's or gdb's test suite could help. If you find a way,
please share it, I need it, too :) .
> What is my_spawn? just a procedure of yours using spawn correct?
Yes.
With kind regards,
Baurzhan.