Running Newlib test cases

Jeff Johnston jjohnstn@redhat.com
Wed Jul 18 04:38:00 GMT 2007


Rohit Arul Raj wrote:
> Hi all,
> 
> I want to run the test-suites present in the newlib folder.
> 
> 1. Is there any documentation available regarding this.
>

None other than dejagnu documentation.

> 2. I have dejagnu and its dependencies installed.
>    I tried  using
>    make check-target-newlib RUNTESTFLAGS="-v -v"
>    But it did not work out.
> 

I recently tried running the testsuite for i686-pc-linux-gnu and ran 
into a problem due to a change that was made in April.  Try the 
accompanying patch and see if it helps you.

I'm assuming you have set up the DEJAGNU environment variable to point 
to your site.exp file.  What platform are you testing for?  Do you have 
an appropriate baseboards exp for it?

> 3. What is the .exp file that has to be exported.
> 

Not sure what you are asking here unless you are referring to the 
site.exp file.

> 4. What are the features that the test suites present in newlib and
> libgloss check?
> 

The newlib testsuite is quite small at this point.  A lot of testing of 
newlib is performed by third-party testsuites that exercise both the 
compiler and library together.  If you look at the different newlib.xx 
directories, you'll see what it tests: string functions, iconv, 
multibyte character functions, an hsearch test,  the wctype functions, 
and there is a minor EL/IX test for i686-pc-linux-gnu only.

The best test there IMO is the string test.  A number of platforms 
rewrite the string functions in assembler for speed and they often have 
bugs to sort out.  I have found this test useful in the past for finding 
these kind of bugs.

The libgloss tests are old and I don't know if they even run any more.

-- Jeff J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testsuite.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20070718/ed73d950/attachment.bin>


More information about the Newlib mailing list