thanks for your reply ;-)
2006/5/5, Baurzhan Ismagulov <[EMAIL PROTECTED]>:
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.
What is my_spawn? just a procedure of yours using spawn correct?
Not yet! But it's getting closer :) thanks again.
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
DejaGnu@gnu.org
http://lists.gnu.org/mailman/listinfo/dejagnu
_______________________________________________ DejaGnu mailing list DejaGnu@gnu.org http://lists.gnu.org/mailman/listinfo/dejagnu