diff options
author | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2006-03-21 11:39:09 +0100 |
---|---|---|
committer | emellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com> | 2006-03-21 11:39:09 +0100 |
commit | 69c80650bf0bda8346aa3aa0382261056f20b05f (patch) | |
tree | f4d266feb9ebaa40fe5d39e8428e28d27f718da0 /tools/xm-test/runtest.sh | |
parent | 7ce80e59d44c239e268f1bda3bcbc6ab71b4b1f3 (diff) | |
download | xen-69c80650bf0bda8346aa3aa0382261056f20b05f.tar.gz xen-69c80650bf0bda8346aa3aa0382261056f20b05f.tar.bz2 xen-69c80650bf0bda8346aa3aa0382261056f20b05f.zip |
Added -u flag (unsafe) to runtest.sh, to skip the sanity checks. This improves
turnaround when developing tests.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/xm-test/runtest.sh')
-rwxr-xr-x | tools/xm-test/runtest.sh | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/tools/xm-test/runtest.sh b/tools/xm-test/runtest.sh index 2cedec6440..9e11824b80 100755 --- a/tools/xm-test/runtest.sh +++ b/tools/xm-test/runtest.sh @@ -15,6 +15,7 @@ usage() { echo " -e <email> : set email address for report" echo " -r <url> : url of test results repository to use" echo " -s <report> : just submit report <report>" + echo " -u : unsafe -- do not run the sanity checks before starting" echo " -h | --help : show this help" } @@ -193,6 +194,7 @@ report=yes reportserver=${xmtest_repo:-'http://xmtest.dague.org/cgi-bin/report-results'} batch=no run=yes +unsafe=no GROUPENTERED=default # Resolve options @@ -227,6 +229,11 @@ while [ $# -gt 0 ] -s) run=no ;; + -u) + echo "(Unsafe mode)" + unsafe=yes + report=no + ;; -h|--help) usage exit 0 @@ -275,15 +282,20 @@ if [ "$GROUPENTERED" != "default" ]; then fi if [ "$run" != "no" ]; then - runnable_tests + if [ "$unsafe" = "no" ]; then + runnable_tests + fi rm -f $REPORT"*" - make_environment_report $OSREPORTTEMP $PROGREPORTTEMP + if [ "$unsafe" = "no" ]; then + make_environment_report $OSREPORTTEMP $PROGREPORTTEMP + fi run_tests $GROUPENTERED $OUTPUT make_text_reports $PASSFAIL $FAILURES $OUTPUT $TXTREPORT - make_result_report $OUTPUT $RESULTREPORTTEMP - cat $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP > $XMLREPORT - rm $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP - + if [ "$unsafe" = "no" ]; then + make_result_report $OUTPUT $RESULTREPORTTEMP + cat $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP > $XMLREPORT + rm $OSREPORTTEMP $PROGREPORTTEMP $RESULTREPORTTEMP + fi fi if [ "$report" = "yes" ]; then |