contrib/gcc-test-suite/README
changeset 1965 e3d532dd8b5d
child 1966 10ad7f230f4b
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/contrib/gcc-test-suite/README	Wed May 19 17:53:04 2010 +0200
     1.3 @@ -0,0 +1,71 @@
     1.4 +
     1.5 +Helper Makefile for testing gcc toolchains using the gcc-testsuite
     1.6 +==================================================================
     1.7 +
     1.8 +Requirements
     1.9 +------------
    1.10 +
    1.11 +* DejaGnu 'runtest' v1.4.4+
    1.12 +* Make v3.81+
    1.13 +* wget
    1.14 +
    1.15 +
    1.16 +Configuration
    1.17 +-------------
    1.18 +
    1.19 +Edit default.cfg to reflect your toolchain and target configuration.
    1.20 +
    1.21 +Alternatively, override configuration variables on the command line.
    1.22 +
    1.23 +Available config variables:
    1.24 +
    1.25 +DG_GCC_VERSION
    1.26 +DG_GCC_URL
    1.27 +DG_TOOLNAME
    1.28 +DG_TARGET
    1.29 +DG_TARGET_HOSTNAME
    1.30 +DG_TARGET_USERNAME
    1.31 +DG_C_TESTS
    1.32 +DG_CPP_TESTS
    1.33 +DG_TOOLCHAIN_DIR
    1.34 +DG_SRC_DIR
    1.35 +
    1.36 +
    1.37 +Run examples
    1.38 +------------
    1.39 +
    1.40 +The first two examples require a networked target with ssh access and automatic
    1.41 +ssh login (see section below). Target SW should be compiled with the toolchain 
    1.42 +to be tested.
    1.43 +
    1.44 +Run default gcc compile/execution tests:
    1.45 +$ make DG_TOOLNAME=gcc DG_TARGET_HOSTNAME=192.168.17.93 DG_TARGET_USERNAME=root
    1.46 +
    1.47 +Run default g++ compile/execution tests:
    1.48 +$ make DG_TOOLNAME=g++ DG_TARGET_HOSTNAME=192.168.17.93 DG_TARGET_USERNAME=root
    1.49 +
    1.50 +Run selected gcc compile only tests (no target required):
    1.51 +$ make DG_TOOLNAME=gcc DG_C_TESTS="compile.exp noncompile.exp" 
    1.52 +
    1.53 +
    1.54 +SSH automatic login configuration example
    1.55 +-----------------------------------------
    1.56 +
    1.57 +On host do: 
    1.58 +ssh-keygen -t rsa (then simply press enter thru all steps)
    1.59 +scp ~/.ssh/id_rsa.pub <username>@<target IP>:~/
    1.60 +
    1.61 +On target do:
    1.62 +cd ~
    1.63 +mkdir .ssh
    1.64 +cat id_rsa.pub >> .ssh/authorized_keys
    1.65 +rm id_rsa.pub
    1.66 +
    1.67 +Now automatic ssh login should work - test by doing a simple ssh session to target.
    1.68 +
    1.69 +Note: The procedure might be slightly different for your particular target.
    1.70 +
    1.71 +
    1.72 +Author
    1.73 +------
    1.74 +Martin Lund <mgl@doredevelopment.dk>