Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2002-07-17 04:58:59 +0400
committerThomas Fitzsimmons <fitzsim@redhat.com>2002-07-17 04:58:59 +0400
commit190b468725b7d3c0135e4ee8824b8275c09283f6 (patch)
tree9e89f14b3c47d6129f2f93576bcea924863b7fb4 /newlib/README
parentce831986a9e4ca8a09fa48e0456f3dd18136d12c (diff)
* README: Add Running the Testsuite section.
Diffstat (limited to 'newlib/README')
-rw-r--r--newlib/README44
1 files changed, 41 insertions, 3 deletions
diff --git a/newlib/README b/newlib/README
index c32a5f06e..a706e723a 100644
--- a/newlib/README
+++ b/newlib/README
@@ -233,12 +233,50 @@ prefer; but you may abbreviate option names if you use `--'.
There is no convenient way to generate a list of all available
hosts.
+Running the Testsuite
+=====================
+
+To run newlib's testsuite, you'll need a site.exp in your home
+directory which points dejagnu to the proper baseboards directory and
+the proper exp file for your target.
+
+Before running make check-target-newlib, set the DEJAGNU environment
+variable to point to ~/site.exp.
+
+Here is a sample site.exp:
+
+# Make sure we look in the right place for the board description files.
+if ![info exists boards_dir] {
+ set boards_dir {}
+}
+lappend boards_dir "your dejagnu/baseboards here"
+
+verbose "Global Config File: target_triplet is $target_triplet" 2
+
+global target_list
+case "$target_triplet" in {
+
+ { "mips-*elf*" } {
+ set target_list "mips-sim"
+ }
+
+ default {
+ set target_list { "unix" }
+ }
+}
+
+mips-sim refers to an exp file in the baseboards directory. You'll
+need to add the other targets you're testing to the case statement.
+
+Now type make check-target-newlib in the top-level build directory to
+run the testsuite.
+
Shared newlib
=============
-newlib now uses libtool when it is being compiled natively (with
---target=i[3456]86-pc-linux-gnu) on an i[3456]86-pc-linux-gnu host. This
-allows newlib to be compiled as a shared library.
+newlib uses libtool when it is being compiled natively (with
+--target=i[3456]86-pc-linux-gnu) on an i[3456]86-pc-linux-gnu
+host. This allows newlib to be compiled as a shared library.
To configure newlib, do the following from your build directory: