Fortran testsuite?
Craig Burley
burley@gnu.ai.mit.edu
Mon Sep 15 00:11:00 GMT 1997
>I think Craig Burley has something along these lines, except that it
>may contain code that shouldn't be released to the public.
Yes, the main problem being that I can't just dump what I have to
somebody else without going through it first...and I don't have time
to do that right now. But if something is put together, I can
probably find time to add dribs and drabs of tests as I find they're
okay, down the road.
>If my understanding is correct, someone would need to pour over the
>code & bug reports and extract just those testcase which are suitable
>for a public audience.
>
>I'm sure Craig will correct me if I'm wrong.
Yes, though I'd rather they "pore" over the tests than "pour" over them. :)
>Most of the time fortran is only used on native systems, and you can
>probably assume that you'll have suitable libraries since they're
>build at the same time as g77.
Note that g77 implements STOP as a call to the library anyway. Though,
this is to a different function -- f_exit() instead of exit_(), or
some such thing.
>The area where you run into trouble is simulator and target board testing.
>Luckily we have some pretty neat features in ld & the testing harnes which
>will allows us to redefine exit to print a pass/fail message (or whatever we
>want) and the testing harness can look for those messages.
I would think this would work for STOP anyway, but generally I'd
prefer nonzero return codes whenever it's just as easy to do it
that way. OTOH, a "standard Fortran test suite" would use "STOP n"
throughout, I guess, not "CALL EXIT(n)". Hmm.
>Craig is probably the man to talk to about putting together a fortan
>testsuite. It's something I'd certainly like to see us start working on.
Kate's already talked to me. I think it's great if she and others
work on putting together an infrastructure and add whatever tests
they have handy and know are fine, copying-wise. E.g. there's lots
of PD stuff on the net I don't know much about. So, feel free to
help her out on the g77 front, and don't worry about (and especially
don't wait for) my input on this -- I'll help out when I can, but
am too busy (and, anyway, not really knowledgable enough about
Fortran testing).
tq vm, (burley)
More information about the Gcc
mailing list