opensubscriber
   Find in this group all groups
 
Unknown more information…

d : dejagnu@gnu.org 8 July 2011 • 4:21PM -0400

RE: Probelm in creating a new testsuite
by Gupta, Usha

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi Ben,
Thanks for the quick reply.

> > Is it possible to keep my testsuite separately and still use gcc as
> > a tool?
>
> That is also possible, but you'll have to do a lot more work.

Could you give me some pointers on this? Is there any document explaining this case?

I will try to reuse the GCC testsuite infrastructure.

I don't understand why this doesn't execute gcc to compile the source files
And why even puts doesn't show any message while simple.exp executes.

foreach test [lsort [glob -nocomplain ./*.c]] {
            if {[catch {exec gcc -c $test} errmsg ]} {
                        puts "FAIL: $errmsg"
                } else {
                        puts "PASS: Compilation passed for $test"
               }
}

Any pointers would be helpful.

Regards
Usha Gupta

> -----Original Message-----
> From: Ben Elliston [mailto:bje@air....]
> Sent: Friday, July 08, 2011 12:45 PM
> To: Gupta, Usha
> Cc: dejagnu@gnu....
> Subject: Re: Probelm in creating a new testsuite
>
> Hi Usha
>
> > But I dont have an interactive program like calc in my case. What I
> > have is a set of C files that I want to compile and execute using
> > gcc.
>
> Then you want to re-use all of the GCC testsuite infrastructure in the
> gcc source tree.
>
> > Is it necessary to add my tests in the gcc testsuite directory?
>
> Not necessary, but that will be easiest.
>
> > Is it possible to keep my testsuite separately and still use gcc as
> > a tool?
>
> That is also possible, but you'll have to do a lot more work.
>
> Cheers, Ben

_______________________________________________
DejaGnu mailing list
DejaGnu@gnu....
https://lists.gnu.org/mailman/listinfo/dejagnu

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.