Changeset 68 for trunk/test/test.sh
- Timestamp:
- Oct 30, 2006, 12:03:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/test.sh
r60 r68 138 138 usage() { 139 139 echo "test.sh [options] <test_number> [hostname]" 140 echo " [-q|--quiet|-v|--verbose] [-s|--stoponerr] [- -no-cleanup]"140 echo " [-q|--quiet|-v|--verbose] [-s|--stoponerr] [-n|--no-cleanup]" 141 141 echo " [--srcdir=top_srcdir] [--color=always|never|auto]" 142 142 echo … … 149 149 echo " ${S}test.sh 7${E} -- GnuPG signed files / prelude log" 150 150 echo " ${S}test.sh 8${E} -- Suidcheck" 151 152 echo " ${S}test.sh 10${E} -- Test c/s init/check (testrc_2.in)" 153 echo " ${S}test.sh 11${E} -- Test full c/s init/check (testrc_2.in)" 154 echo " ${S}test.sh 12${E} -- Test full c/s w/gpg (testrc_2.in)" 155 echo " ${S}test.sh 13${E} -- Test full c/s w/mysql (testrc_2.in)" 156 echo " ${S}test.sh 14${E} -- Test full c/s w/postgres (testrc_2.in)" 151 echo " ${S}test.sh 9${E} -- Process check" 152 echo " ${S}test.sh 10${E} -- Port check" 153 154 echo " ${S}test.sh 20${E} -- Test c/s init/check (testrc_2.in)" 155 echo " ${S}test.sh 21${E} -- Test full c/s init/check (testrc_2.in)" 156 echo " ${S}test.sh 22${E} -- Test full c/s w/gpg (testrc_2.in)" 157 echo " ${S}test.sh 23${E} -- Test full c/s w/mysql (testrc_2.in)" 158 echo " ${S}test.sh 24${E} -- Test full c/s w/postgres (testrc_2.in)" 157 159 echo " ${S}test.sh all${E} -- All tests" 158 160 } … … 162 164 echo " (1) testcompile.sh (2) testhash.sh (3) testrun_1.sh (4) testrun_1a.sh" 163 165 echo " (5) testext.sh (6) testtimesrv.sh (7) testrun_1b.sh (8) testrun_1c.sh" 164 echo " (10) testrun_2.sh (11) testrun_2a.sh (12) testrun_2b.sh (13) testrun_2c.sh" 165 echo " (14) testrun_2d.sh" 166 echo " (9) testrun_1d.sh" 167 echo " (20) testrun_2.sh (21) testrun_2a.sh (22) testrun_2b.sh (23) testrun_2c.sh" 168 echo " (24) testrun_2d.sh" 166 169 } 167 170 … … 185 188 -q|--quiet) quiet=on; verbose= ;; 186 189 -s|--stoponerr) stoponerr=on;; 187 - -no-cleanup) cleanup= ;;190 -n|--no-cleanup) cleanup= ;; 188 191 --really-all) doall=on;; 189 192 --valgrind) usevalgrind=on;; … … 366 369 367 370 log_fail () { 368 log_msg "$1" "$2" failure "$3";371 [ -z "$quiet" ] && log_msg "$1" "$2" failure "$3"; 369 372 let "failcount = failcount + 1" >/dev/null; 370 373 test -z "$stoponerr" || exit 1; 371 374 } 372 375 log_ok () { 373 log_msg "$1" "$2" success "$3";376 [ -z "$quiet" ] && log_msg "$1" "$2" success "$3"; 374 377 let "okcount = okcount + 1" >/dev/null; 375 378 } 376 379 log_skip () { 377 log_msg "$1" "$2" skipped "$3";380 [ -z "$quiet" ] && log_msg "$1" "$2" skipped "$3"; 378 381 let "skipcount = skipcount + 1" >/dev/null; 379 382 } … … 441 444 print_summary () 442 445 { 443 let "gcount = okcount + skipcount + failcount" >/dev/null; 446 # let "gcount = okcount + skipcount + failcount" >/dev/null; 447 gcount=$MAXTEST; 448 let "failcount = gcount - okcount - skipcount" >/dev/null; 449 444 450 [ -z "$quiet" ] && { 445 451 echo … … 594 600 exit $? 595 601 fi 602 if test x$1 = x9; then 603 . ${SCRIPTDIR}/testrun_1.sh 604 . ${SCRIPTDIR}/testrun_1d.sh 605 testrun1d 606 print_summary 607 exit $? 608 fi 596 609 if test x$1 = x10; then 610 . ${SCRIPTDIR}/testrun_1.sh 611 . ${SCRIPTDIR}/testrun_1e.sh 612 testrun1e 613 print_summary 614 exit $? 615 fi 616 if test x$1 = x20; then 597 617 . ${SCRIPTDIR}/testrun_2.sh 598 618 testrun2 $hostname … … 600 620 exit $? 601 621 fi 602 if test x$1 = x 11; then622 if test x$1 = x21; then 603 623 . ${SCRIPTDIR}/testrun_2a.sh 604 624 testrun2a $hostname … … 606 626 exit $? 607 627 fi 608 if test x$1 = x 12; then628 if test x$1 = x22; then 609 629 . ${SCRIPTDIR}/testrun_2a.sh 610 630 . ${SCRIPTDIR}/testrun_2b.sh … … 613 633 exit $? 614 634 fi 615 if test x$1 = x 13; then635 if test x$1 = x23; then 616 636 . ${SCRIPTDIR}/testrun_2a.sh 617 637 . ${SCRIPTDIR}/testrun_2c.sh … … 620 640 exit $? 621 641 fi 622 if test x$1 = x 14; then642 if test x$1 = x24; then 623 643 . ${SCRIPTDIR}/testrun_2a.sh 624 644 . ${SCRIPTDIR}/testrun_2d.sh … … 644 664 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 645 665 . ${SCRIPTDIR}/testrun_1c.sh 666 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 667 . ${SCRIPTDIR}/testrun_1d.sh 668 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 669 . ${SCRIPTDIR}/testrun_1e.sh 646 670 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 647 671 . ${SCRIPTDIR}/testrun_2.sh … … 687 711 MAXTEST=${TEST_MAX}; export MAXTEST 688 712 testrun1c 713 # 714 . ${SCRIPTDIR}/testrun_1.sh 715 . ${SCRIPTDIR}/testrun_1d.sh 716 MAXTEST=${TEST_MAX}; export MAXTEST 717 testrun1d 718 # 719 . ${SCRIPTDIR}/testrun_1.sh 720 . ${SCRIPTDIR}/testrun_1e.sh 721 MAXTEST=${TEST_MAX}; export MAXTEST 722 testrun1e 689 723 # 690 724 . ${SCRIPTDIR}/testrun_2.sh
Note:
See TracChangeset
for help on using the changeset viewer.