This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Running Newlib test cases


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.
Index: testsuite/lib/flags.exp
===================================================================
RCS file: /cvs/src/src/newlib/testsuite/lib/flags.exp,v
retrieving revision 1.3
diff -u -p -r1.3 flags.exp
--- testsuite/lib/flags.exp	5 Apr 2007 16:53:17 -0000	1.3
+++ testsuite/lib/flags.exp	17 Jul 2007 21:55:54 -0000
@@ -82,5 +82,9 @@ proc newlib_include_flags { args } {
 	return ""
     }
 
-    return " -I$objdir/targ-include"
+    set newlib_dir [lookfor_file ${srcdir} newlib/libc/include/assert.h]
+    if { ${newlib_dir} != "" } {
+        set newlib_dir [file dirname ${newlib_dir}]
+    }
+    return " -I$objdir/targ-include -I$objdir -I${newlib_dir}"
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]