From: Jan-Benedict G. <jb...@us...> - 2005-12-19 12:59:43
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30521 Modified Files: run_test_build.sh Log Message: - Maybe keep the testsuite results. Index: run_test_build.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/run_test_build.sh,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- run_test_build.sh 19 Dec 2005 12:30:31 -0000 1.12 +++ run_test_build.sh 19 Dec 2005 12:59:35 -0000 1.13 @@ -1,7 +1,7 @@ #!/bin/sh if [ $# -ne 7 ]; then - echo "$0 target /path/to/build-directory /path/to/vax_toolchain_config ma...@ad... /path/to/build.okay /path/to/build.not-okay /path/to/lockfile" >&2 + echo "$0 target /path/to/build-directory /path/to/vax_toolchain_config ma...@ad... /path/to/build.okay /path/to/build.not-okay /path/to/lockfile {/path/to/testresult_dir}" >&2 echo "" >&2 echo "target -- Something like vax-linux or vax-linux-uclibc" >&2 echo "/path/to/build-directory -- This is where all the stuff is build in, /tmp/vax-linux would be a nice name." >&2 @@ -11,6 +11,7 @@ echo "/path/to/build.not-okay -- Location to save the build.log to IFF the build was unsuccessful" >&2 echo "/path/to/build.not-okay -- Location to save the build.log to IFF the build was unsuccessful" >&2 echo "/path/to/lockfile -- GLOBAL lockfile for CVS/SVN updates and ALL and ANY builds" >&2 + echo "/path/to/testresult_dir -- Results of the test suite are put here. Optional." >&2 exit 1 fi @@ -21,11 +22,20 @@ BUILD_OKAY="${5}" BUILD_BAD="${6}" LOCKFILE="${7}" +TESTRESULT_DIR="${8}" I_AM="Nemo" VERSION="$Revision$" START_TIME="`date --utc '+%Y%m%d-%H%M%S'`" +if [ -d "${TESTRESULT_DIR}" ]; then + RUN_TEST=YesPlease + OMIT_CHECKS="" +else + RUN_TEST="" + OMIT_CHECKS="--omit-checks" +fi + # # $1: Subject # @@ -61,12 +71,14 @@ } function unlock() { - if ls ${BUILD_DIRECTORY}/*.sh > /dev/null 2>&1; then - pushd "${BUILD_DIRECTORY}" > /dev/null 2>&1 - for REPORT in *.sh; do - cp ${REPORT} "/tmp/report-${START_TIME}-${REPORT}" - done - popd > /dev/null 2>&1 + if [ -n "${RUN_TEST}" ]; then + if ls ${BUILD_DIRECTORY}/*.sh > /dev/null 2>&1; then + pushd "${BUILD_DIRECTORY}" > /dev/null 2>&1 + for REPORT in *.sh; do + cp "${REPORT}" "${TESTRESULT_DIR}/report-${START_TIME}-${REPORT}" + done + popd > /dev/null 2>&1 + fi fi rm -rf "${BUILD_DIRECTORY}" rm -f "${LOCKFILE}" @@ -98,7 +110,7 @@ . "${SOURCE_FILE}" lock_down update_sources -if build_toolchain.sh --base "${BUILD_DIRECTORY}" --log-to-file "${TARGET}" > /dev/null 2>&1; then +if build_toolchain.sh --base "${BUILD_DIRECTORY}" --log-to-file ${OMIT_CHECKS} "${TARGET}" > /dev/null 2>&1; then # Build is okay ( echo "Hello!" |