diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-07-17 00:58:59 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-07-17 00:58:59 +0000 |
commit | 190b468725b7d3c0135e4ee8824b8275c09283f6 (patch) | |
tree | 9e89f14b3c47d6129f2f93576bcea924863b7fb4 /newlib | |
parent | ce831986a9e4ca8a09fa48e0456f3dd18136d12c (diff) | |
download | newlib-190b468725b7d3c0135e4ee8824b8275c09283f6.zip newlib-190b468725b7d3c0135e4ee8824b8275c09283f6.tar.gz newlib-190b468725b7d3c0135e4ee8824b8275c09283f6.tar.bz2 |
* README: Add Running the Testsuite section.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/README | 44 |
1 files changed, 41 insertions, 3 deletions
diff --git a/newlib/README b/newlib/README index c32a5f0..a706e72 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: |