From 190b468725b7d3c0135e4ee8824b8275c09283f6 Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Wed, 17 Jul 2002 00:58:59 +0000 Subject: * README: Add Running the Testsuite section. --- newlib/README | 44 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) (limited to 'newlib/README') 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: -- cgit v1.2.3