contrib/gcc-test-suite/README
author Martin Lund <mgl@doredevelopment.dk>
Wed May 19 17:53:04 2010 +0200 (2010-05-19)
changeset 1965 e3d532dd8b5d
child 1966 10ad7f230f4b
permissions -rw-r--r--
test-suite: Added new test suite feature (experimental)

This patch adds support for installing the gcc test suite. A helper
Makefile is provided for building and running the gcc tests.

The default configuration runs all gcc tests and requires automatic
ssh/scp login access to a networked target board. See README for
more details.

Note: Current feature is tested with the powerpc-unknown-linux-gnu
sample but it should work with others as well.

Signed-off-by: Martin Lund <mgl@doredevelopment.dk>
     1 
     2 Helper Makefile for testing gcc toolchains using the gcc-testsuite
     3 ==================================================================
     4 
     5 Requirements
     6 ------------
     7 
     8 * DejaGnu 'runtest' v1.4.4+
     9 * Make v3.81+
    10 * wget
    11 
    12 
    13 Configuration
    14 -------------
    15 
    16 Edit default.cfg to reflect your toolchain and target configuration.
    17 
    18 Alternatively, override configuration variables on the command line.
    19 
    20 Available config variables:
    21 
    22 DG_GCC_VERSION
    23 DG_GCC_URL
    24 DG_TOOLNAME
    25 DG_TARGET
    26 DG_TARGET_HOSTNAME
    27 DG_TARGET_USERNAME
    28 DG_C_TESTS
    29 DG_CPP_TESTS
    30 DG_TOOLCHAIN_DIR
    31 DG_SRC_DIR
    32 
    33 
    34 Run examples
    35 ------------
    36 
    37 The first two examples require a networked target with ssh access and automatic
    38 ssh login (see section below). Target SW should be compiled with the toolchain 
    39 to be tested.
    40 
    41 Run default gcc compile/execution tests:
    42 $ make DG_TOOLNAME=gcc DG_TARGET_HOSTNAME=192.168.17.93 DG_TARGET_USERNAME=root
    43 
    44 Run default g++ compile/execution tests:
    45 $ make DG_TOOLNAME=g++ DG_TARGET_HOSTNAME=192.168.17.93 DG_TARGET_USERNAME=root
    46 
    47 Run selected gcc compile only tests (no target required):
    48 $ make DG_TOOLNAME=gcc DG_C_TESTS="compile.exp noncompile.exp" 
    49 
    50 
    51 SSH automatic login configuration example
    52 -----------------------------------------
    53 
    54 On host do: 
    55 ssh-keygen -t rsa (then simply press enter thru all steps)
    56 scp ~/.ssh/id_rsa.pub <username>@<target IP>:~/
    57 
    58 On target do:
    59 cd ~
    60 mkdir .ssh
    61 cat id_rsa.pub >> .ssh/authorized_keys
    62 rm id_rsa.pub
    63 
    64 Now automatic ssh login should work - test by doing a simple ssh session to target.
    65 
    66 Note: The procedure might be slightly different for your particular target.
    67 
    68 
    69 Author
    70 ------
    71 Martin Lund <mgl@doredevelopment.dk>