mgl@1965: mgl@1965: Helper Makefile for testing gcc toolchains using the gcc-testsuite mgl@1965: ================================================================== mgl@1965: mgl@1965: Requirements mgl@1965: ------------ mgl@1965: mgl@1965: * DejaGnu 'runtest' v1.4.4+ mgl@1965: * Make v3.81+ mgl@1965: * wget mgl@1965: mgl@1965: mgl@1965: Configuration mgl@1965: ------------- mgl@1965: mgl@1965: Edit default.cfg to reflect your toolchain and target configuration. mgl@1965: mgl@1965: Alternatively, override configuration variables on the command line. mgl@1965: mgl@1965: Available config variables: mgl@1965: mgl@1965: DG_GCC_VERSION mgl@1965: DG_GCC_URL mgl@1965: DG_TOOLNAME mgl@1965: DG_TARGET mgl@1965: DG_TARGET_HOSTNAME mgl@1965: DG_TARGET_USERNAME mgl@1965: DG_C_TESTS mgl@1965: DG_CPP_TESTS mgl@1965: DG_TOOLCHAIN_DIR mgl@1965: DG_SRC_DIR mgl@1965: mgl@1965: mgl@1965: Run examples mgl@1965: ------------ mgl@1965: mgl@1965: The first two examples require a networked target with ssh access and automatic mgl@1965: ssh login (see section below). Target SW should be compiled with the toolchain mgl@1965: to be tested. mgl@1965: mgl@1965: Run default gcc compile/execution tests: mgl@1965: $ make DG_TOOLNAME=gcc DG_TARGET_HOSTNAME=192.168.17.93 DG_TARGET_USERNAME=root mgl@1965: mgl@1965: Run default g++ compile/execution tests: mgl@1965: $ make DG_TOOLNAME=g++ DG_TARGET_HOSTNAME=192.168.17.93 DG_TARGET_USERNAME=root mgl@1965: mgl@1965: Run selected gcc compile only tests (no target required): mgl@1965: $ make DG_TOOLNAME=gcc DG_C_TESTS="compile.exp noncompile.exp" mgl@1965: mgl@1965: mgl@1965: SSH automatic login configuration example mgl@1965: ----------------------------------------- mgl@1965: mgl@1965: On host do: mgl@1965: ssh-keygen -t rsa (then simply press enter thru all steps) mgl@1965: scp ~/.ssh/id_rsa.pub @:~/ mgl@1965: mgl@1965: On target do: mgl@1965: cd ~ mgl@1965: mkdir .ssh mgl@1965: cat id_rsa.pub >> .ssh/authorized_keys mgl@1965: rm id_rsa.pub mgl@1965: mgl@1965: Now automatic ssh login should work - test by doing a simple ssh session to target. mgl@1965: mgl@1965: Note: The procedure might be slightly different for your particular target. mgl@1965: mgl@1965: mgl@1965: Author mgl@1965: ------ mgl@1965: Martin Lund