dejagnu
[Top][All Lists]
Advanced

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

Re: my setup


From: Rui Machado
Subject: Re: my setup
Date: Mon, 8 May 2006 10:24:37 +0200

Hi,

thanks for your reply ;-)

2006/5/5, Baurzhan Ismagulov <address@hidden>:
Hello Rui,

On Fri, May 05, 2006 at 04:47:20PM +0200, Rui Machado wrote:
> I've managed to setup something around Makefiles, like putting a Makefile in
> every testcase directory. But this makes me to always add the new directory
> to the configure.in file, changing the Makefile.am, etc. well, a lot of work
> that I would like to avoid. I would like something more DejaGnu :) , like
> just add the directory, the C program, the test script and that's it.

I'm not sure I understand exactly what you want. Here is how I do it:

prj
prj/Makefile.am
prj/configure.ac
prj/testsuite
prj/testsuite/a
prj/testsuite/a/a.exp
prj/testsuite/a/a1.c
prj/testsuite/a/a2.c
prj/testsuite/b
prj/testsuite/b/b.exp
prj/testsuite/b/b1.c
prj/testsuite/b/b2.c

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?
This is better than what I have, but I still have to add them here, run configure and make right?
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.

In prj/testsuite/a/a.exp:

my_spawn a1 a1a a1b a1c
my_spawn a2 a2a a2b a2c

What is my_spawn? just a procedure of yours using spawn correct?
 

This would save you adding a new directory and its Makefile into
configure.ac and creating Makefile.am in it.

Is this what you want?

Not yet! But it's getting closer :) thanks again.

With kind regards,
Baurzhan.


_______________________________________________
DejaGnu mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/dejagnu


reply via email to

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