ia64/xen-unstable

changeset 9361:47a55b3b7b39

Merged.
author kaf24@firebug.cl.cam.ac.uk
date Tue Mar 21 11:43:44 2006 +0100 (2006-03-21)
parents ae212c225e2a cdd11b936a26
children a659a3f20066
files
line diff
     1.1 --- a/tools/xm-test/runtest.sh	Tue Mar 21 11:42:39 2006 +0100
     1.2 +++ b/tools/xm-test/runtest.sh	Tue Mar 21 11:43:44 2006 +0100
     1.3 @@ -15,6 +15,7 @@ usage() {
     1.4      echo "  -e <email>  : set email address for report"
     1.5      echo "  -r <url>    : url of test results repository to use"
     1.6      echo "  -s <report> : just submit report <report>"
     1.7 +    echo "  -u          : unsafe -- do not run the sanity checks before starting"
     1.8      echo "  -h | --help : show this help"
     1.9  }
    1.10  
    1.11 @@ -193,6 +194,7 @@ report=yes
    1.12  reportserver=${xmtest_repo:-'http://xmtest.dague.org/cgi-bin/report-results'}
    1.13  batch=no
    1.14  run=yes
    1.15 +unsafe=no
    1.16  GROUPENTERED=default
    1.17  
    1.18  # Resolve options
    1.19 @@ -227,6 +229,11 @@ while [ $# -gt 0 ]
    1.20        -s)
    1.21  	  run=no
    1.22  	  ;;
    1.23 +      -u)
    1.24 +	  echo "(Unsafe mode)"
    1.25 +	  unsafe=yes
    1.26 +	  report=no
    1.27 +	  ;;
    1.28        -h|--help)
    1.29            usage
    1.30            exit 0
    1.31 @@ -275,15 +282,20 @@ if [ "$GROUPENTERED" != "default" ]; the
    1.32  fi
    1.33  
    1.34  if [ "$run" != "no" ]; then
    1.35 -    runnable_tests
    1.36 +    if [ "$unsafe" = "no" ]; then
    1.37 +      runnable_tests
    1.38 +    fi
    1.39      rm -f $REPORT"*"
    1.40 -    make_environment_report $OSREPORTTEMP $PROGREPORTTEMP
    1.41 +    if [ "$unsafe" = "no" ]; then
    1.42 +      make_environment_report $OSREPORTTEMP $PROGREPORTTEMP
    1.43 +    fi
    1.44      run_tests $GROUPENTERED $OUTPUT
    1.45      make_text_reports $PASSFAIL $FAILURES $OUTPUT $TXTREPORT
    1.46 -    make_result_report $OUTPUT $RESULTREPORTTEMP
    1.47 -    cat $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP > $XMLREPORT
    1.48 -    rm $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP
    1.49 -
    1.50 +    if [ "$unsafe" = "no" ]; then
    1.51 +      make_result_report $OUTPUT $RESULTREPORTTEMP
    1.52 +      cat $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP > $XMLREPORT
    1.53 +      rm $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP
    1.54 +    fi
    1.55  fi
    1.56  
    1.57  if [ "$report" = "yes" ]; then