Changeset 481 for trunk/test
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (9 years ago)
- Location:
- trunk/test
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/test.sh
r235 r481 151 151 echo " ${S}test.sh 9${E} -- Process check" 152 152 echo " ${S}test.sh 10${E} -- Port check" 153 echo " ${S}test.sh 11${E} -- CL verify option" 154 echo " ${S}test.sh 12${E} -- CL create DeltaDB" 155 echo " ${S}test.sh 13${E} -- CL create/verify partial DB" 153 156 154 157 echo " ${S}test.sh 20${E} -- Test c/s init/check (testrc_2.in)" … … 157 160 echo " ${S}test.sh 23${E} -- Test full c/s w/mysql (testrc_2.in)" 158 161 echo " ${S}test.sh 24${E} -- Test full c/s w/postgres (testrc_2.in)" 162 echo " ${S}test.sh 25${E} -- Test server w/yulectl (testrc_2.in)" 163 echo " ${S}test.sh 26${E} -- Test c/s case one (testrc_2.in)" 164 echo " ${S}test.sh 27${E} -- Test c/s case two (testrc_2.in)" 159 165 echo " ${S}test.sh all${E} -- All tests" 160 166 } … … 164 170 echo " (1) testcompile.sh (2) testhash.sh (3) testrun_1.sh (4) testrun_1a.sh" 165 171 echo " (5) testext.sh (6) testtimesrv.sh (7) testrun_1b.sh (8) testrun_1c.sh" 166 echo " (9) testrun_1d.sh (10) testrun_1e.sh" 172 echo " (9) testrun_1d.sh (10) testrun_1e.sh (11) testrun_1f.sh (12) testrun_1g.sh" 173 echo " (13) testrun_1h.sh" 167 174 echo " (20) testrun_2.sh (21) testrun_2a.sh (22) testrun_2b.sh (23) testrun_2c.sh" 168 echo " (24) testrun_2d.sh "175 echo " (24) testrun_2d.sh (25) testrun_2e.sh (26) testrun_2f.sh (27) testrun_2g.sh" 169 176 } 170 177 … … 434 441 rm -f testrc_1ext 435 442 rm -f ./.samhain_file 443 rm -f file.*.*-*-*-*-* 436 444 rm -f ./.samhain_log* 437 445 rm -f ./.samhain_lock* … … 446 454 rm -f yule.html2 447 455 rm -f test_dnmalloc 456 rm -f tmp_list_file 457 rm -f test_filter.txt 448 458 } 449 459 … … 626 636 exit $? 627 637 fi 638 if test x$1 = x11; then 639 . ${SCRIPTDIR}/testrun_1.sh 640 . ${SCRIPTDIR}/testrun_1f.sh 641 testrun1f 642 print_summary 643 exit $? 644 fi 645 if test x$1 = x12; then 646 . ${SCRIPTDIR}/testrun_1.sh 647 . ${SCRIPTDIR}/testrun_1g.sh 648 testrun1g 649 print_summary 650 exit $? 651 fi 652 if test x$1 = x13; then 653 . ${SCRIPTDIR}/testrun_1.sh 654 . ${SCRIPTDIR}/testrun_1h.sh 655 testrun1h 656 print_summary 657 exit $? 658 fi 628 659 if test x$1 = x20; then 629 660 . ${SCRIPTDIR}/testrun_2.sh … … 659 690 exit $? 660 691 fi 692 if test x$1 = x25; then 693 . ${SCRIPTDIR}/testrun_2e.sh 694 testrun2e $hostname 695 print_summary 696 exit $? 697 fi 698 if test x$1 = x26; then 699 . ${SCRIPTDIR}/testrun_2f.sh 700 testrun2f $hostname 701 print_summary 702 exit $? 703 fi 704 if test x$1 = x27; then 705 . ${SCRIPTDIR}/testrun_2g.sh 706 testrun2g $hostname 707 print_summary 708 exit $? 709 fi 661 710 if test x$1 = xall; then 662 711 TEST_MAX=0 … … 681 730 . ${SCRIPTDIR}/testrun_1e.sh 682 731 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 732 . ${SCRIPTDIR}/testrun_1f.sh 733 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 734 . ${SCRIPTDIR}/testrun_1g.sh 735 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 736 . ${SCRIPTDIR}/testrun_1h.sh 737 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 683 738 . ${SCRIPTDIR}/testrun_2.sh 684 739 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null … … 690 745 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 691 746 . ${SCRIPTDIR}/testrun_2d.sh 747 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 748 . ${SCRIPTDIR}/testrun_2e.sh 749 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 750 . ${SCRIPTDIR}/testrun_2f.sh 751 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 752 . ${SCRIPTDIR}/testrun_2g.sh 692 753 let "TEST_MAX = TEST_MAX + MAXTEST" >/dev/null 693 754 # … … 734 795 testrun1e 735 796 # 797 . ${SCRIPTDIR}/testrun_1.sh 798 . ${SCRIPTDIR}/testrun_1f.sh 799 MAXTEST=${TEST_MAX}; export MAXTEST 800 testrun1f 801 # 802 . ${SCRIPTDIR}/testrun_1.sh 803 . ${SCRIPTDIR}/testrun_1g.sh 804 MAXTEST=${TEST_MAX}; export MAXTEST 805 testrun1g 806 # 807 . ${SCRIPTDIR}/testrun_1.sh 808 . ${SCRIPTDIR}/testrun_1h.sh 809 MAXTEST=${TEST_MAX}; export MAXTEST 810 testrun1h 811 # 736 812 . ${SCRIPTDIR}/testrun_2.sh 737 813 MAXTEST=${TEST_MAX}; export MAXTEST … … 753 829 MAXTEST=${TEST_MAX}; export MAXTEST 754 830 testrun2d $hostname 831 # 832 . ${SCRIPTDIR}/testrun_2e.sh 833 MAXTEST=${TEST_MAX}; export MAXTEST 834 testrun2e $hostname 835 # 836 . ${SCRIPTDIR}/testrun_2f.sh 837 MAXTEST=${TEST_MAX}; export MAXTEST 838 testrun2f $hostname 839 # 840 . ${SCRIPTDIR}/testrun_2g.sh 841 MAXTEST=${TEST_MAX}; export MAXTEST 842 testrun2g $hostname 755 843 # 756 844 print_summary … … 768 856 769 857 __ARCHIVE_FOLLOWS__ 770 £ÉúDíÏoãDÇœ UbN\'€8*Û:IÓJpãÔ-ŠùÑBU!o2M771 þz&éf/#§šgGâßa%7U$ÄHšU{àÚš 772 ã$M¶Ûª.¬4Ù 773 Ï÷Þ×3!39΀§dän2;3ã.ïÕ]ýzïÕëóq.~Æ7ëqû\³ 774 môž< 775 äo'q²È&)+:2¯êL| 776 aùp×a!(-aDÀø²p% 777 R°×dŒ3ãK 858 p{Uí=lÛFÇé©Å!sÑ-diD&%r 859 #QŽÖ 860 ÙQ0ÒbÍ€d+Kеk¢@75kå¡l}!KaDÔ:µC=öÐÕ 861 ¥ØRA 862 8MûÄñþw÷ã;Ùñ(Å#ÛêR 1ìÜ[2?=^º0þ@bŒ~ËÒ^ÆÇR4ãcXôåž3IÑvd 863 BÊUY¯î÷ºöÿ)7]n 864 bD11QBpIH&yQ6EÙÎ/Àä"ÏÉtBž&ع² 865 pÍ,B¡,bL KÈRseèäUêȶe6xDZÔ{EÙ §jENkÐ0 866 h!YÓÊP3·ÉŸqG(kºi;P)Êl8î 867 Ø:ÚQml¹JÔTÂî1³6²JjÙcR 868 Û¯ëŠÅ. %d8Iä:ì7ÁÙ× 869 ¶@sü9!1RÉÙeC+OªgMªÞŸÔQ 870 ÓBi Iýb±Šõç5Û-ã\ 871 MÇ}.TËæT#g+÷c4l`g6Á¬jgxŒÏ 872 Ñ 873 e[Óbz±p£9ÀÆjg6AHFºiànxVÇõ+Gª#ñÒ®@¢e«ŠÅ4QÓ, 874 ;±4H i9ᢊ 875 778 876 779 "ÒZ'å 780 JÍÃO,ÔJAIÏF$H 781 CŠ²dGÁPCËi Ø1ûYðØVTäF$ ÀÛP74¬ªyši§ ¿iG(« LgeSÖzGLÀŠd{éEgÀËi:K9%ðiúkIÑ9€8r&ù-pþ782 xŸ\ãŠS«º·'4nœÈöo 783 ËiÝ0QØÐÑžýâc]Ö_PUÿlêCs?$ýT÷Ð(*&ö+ú¶1Že:ý`&³VdE=o¥ãušyhèÇÈcuÄÖë1×6WÜ¢4C§ÝhTâäÜAÉ/Ö 784 ù]nÞ1ÆP2kbÅÐCÔêwõ!ÃÈô:Íò 2I³ª*"B~ºF@Àñ³ÚÝ®ü=§Î 785 ®.npÉ 786 Ö±Áâ]GœhósM¹§Œð]))zöÁ{ (âž]787 NâUi×òÂKîœùÔ'|ÄÇp4çÑøûá{Þ¹ð¯GCºV}Ñt E4w¬ðáXÄ÷0êÐ788 Š)Xöÿ¶DU÷ ÅËÒû¯n 789 ËÚÝú>sþ[:®ÙÿÝ^Þ{ŸÿÏxœ^gÿ÷¹ÙþÿBx1ûÿO¿üÐùý¯œ:à 790 œ_y>¬^ýËïOE§,>/G)ÀÑö7žîÑÑÙ³ú.µ>>é>ý£[p.®|Cèðýã³'à.(|u¹;ô.§&žý;ýú[?öÓÿîøXù\9Žýfr 791 ݧ 792 nÁ¹žNZÊõÃÃfѶËõR§]Žª¥b»Ø²Ú 793 ë°T¬5:õF±TkÚ]ÈÙÿíèôìôQÉ79îëšÇŸ(øhŒ|®šÏÑš(»\Ž¬b«}xPjV«õZµa7êµJŲJr»b[Tfë VªÖ+TßÎN®Ñ$Ñu?ì×OÊߟ³àŒp¥&ÚïhjØ 794 «ÒŽ«õN˲[Z³U/µ*õ]?,µ*öA£ZîXV¥n7;Ã:=îþùëcg®úrR ZþÅS\%c§ž7{¢äâI`nÝ+ 795 ©D@ÌMûBgÝéœEa-^ú|7¢EgædFü8(íFdLOñÉ 796 ûâ 797 Á`0 798 Á`0 799 Á`0 800 F¿ès((877 ># èÚ±z 878 §+nhÔÝÁåð&SN0ZIŒ8Œ«h8ÛÂZb<^~$J+³QÕ(î| 879 Ý 880 ëvzYüÖËüô¢w;ÁÖü§tÂ|:}OºãÒŽ^_âJÅto ,ÑR"ž÷( 881 € £«|# 882 àr"zè 883 Š¹÷_ÿþÇõ<Nm¹ÿÇ%]ÃüÏŸ:ÿ³¬ÿ,ÿ3vó?KûIþŒüÿëo?õc¢ 884 `Þ{Òïñ;C]ÁeTÿª^^qËçNãTÆpëPÃÃÓÆ7]= 885 <ûkPqjï 886 Á£?Ô/O 887 PÔãӧà&š|9=¬üþðÉêÆÌš 888 üöþ0k!ÏDù/ÂúqªúMeð¬2šžÕît·[ýÝf³ßkµúµn£Õì4v[ûÝ~³ÛÚoWö:m¬7÷zZ 889 ¿zõ"¬ 890 Œ&žñ墣úw_Snùhÿ8uiÁõ«ûµN£±Ûk÷;j»ßݯï 891 tkœfµW7v»Õ^§^ëvêõÇ»œNïåàNÏzäÆ÷·Ÿ-5OA_ 892 óÚj¿çÊVüâæ(¯ ¢Éó$Ûﮢì 893 » 894 ž^HM 895 øb[Œy'ñ 896 ëhIæŒëw5o2 897 ÒÐb!f|81œ|·o 898 @ @ @ ð.ò7<Ì( -
trunk/test/testcompile.sh
r474 r481 157 157 if [ $? -eq 0 ]; then 158 158 isLinux=1 159 sed --in-place 's/-Wall/-Wall -Werror /' Makefile159 sed --in-place 's/-Wall/-Wall -Werror -Wpointer-arith -Wcast-qual/' Makefile 160 160 fi 161 161 # -
trunk/test/testhash.sh
r378 r481 63 63 fi 64 64 # 65 ${TOP_SRCDIR}/configure --enable-debug=gdb --quiet $TRUST --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file --enable-db-reload '--enable-login-watch' '--enable-mounts-check' ${C_LOGFILE} '--enable-port-check' '--enable-suidcheck' '-- with-rnd=unix'65 ${TOP_SRCDIR}/configure --enable-debug=gdb --quiet $TRUST --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file --enable-db-reload '--enable-login-watch' '--enable-mounts-check' ${C_LOGFILE} '--enable-port-check' '--enable-suidcheck' '--enable-message-queue' 66 66 # 67 67 fail=0 -
trunk/test/testrun_1.sh
r371 r481 42 42 43 43 MAXTEST=15; export MAXTEST 44 MAXTEST_3=15; export MAXTEST_3 44 45 45 46 test_dirs () { … … 1144 1145 } 1145 1146 1147 echo "${BASE}" > ./tmp_list_file 1148 1146 1149 for ff in $TDIRS; do 1147 1150 mkdir "${BASE}/${ff}" || { … … 1149 1152 return 1; 1150 1153 } 1154 echo "${BASE}/${ff}" >> ./tmp_list_file 1151 1155 chmod 0755 "${BASE}/${ff}" 1152 1156 for gg in $TFILES; do 1153 1157 echo "1 This is a test file" > "${BASE}/${ff}/${gg}" 1154 1158 chmod 0644 "${BASE}/${ff}/${gg}" 1159 echo "${BASE}/${ff}/${gg}" >> ./tmp_list_file 1155 1160 ln -s "${BASE}/${ff}/${gg}" "${BASE}/${ff}/l_${gg}" 1161 echo "${BASE}/${ff}/l_${gg}" >> ./tmp_list_file 1156 1162 done 1157 1163 echo "2 This is a test file" >> "${BASE}/${ff}/y" … … 1207 1213 POLICY=`eval echo '"$'"TESTPOLICY_$tcount"'"'` 1208 1214 1209 until [ -z "$POLICY"]1215 until [ ${tcount} -gt ${MAXTEST_3} ] 1210 1216 do 1211 1217 prep_init -
trunk/test/testrun_1a.sh
r155 r481 27 27 testrun_stealth () 28 28 { 29 tcount=1 429 tcount=1 30 30 31 31 if test -r "Makefile"; then -
trunk/test/testrun_2a.sh
r472 r481 23 23 RCFILE="$PW_DIR/testrc_2"; export RCFILE 24 24 25 SERVER_BUILDOPTS="--quiet $TRUST --enable-network=server --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER$PW_DIR/testrc_2 --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-logserver=${SH_LOCALHOST} --with-log-file=$PW_DIR/.samhain_log --with-pid-file=$PW_DIR/.samhain_lock "; export SERVER_BUILDOPTS26 27 CLIENT_BUILDOPTS="--quiet $TRUST --enable-network=client --enable-srp --prefix=$PW_DIR --with-tmp-dir=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER$RCFILE --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --enable-suidcheck "; export CLIENT_BUILDOPTS25 SERVER_BUILDOPTS="--quiet $TRUST --enable-network=server --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER$PW_DIR/testrc_2 --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-logserver=${SH_LOCALHOST} --with-log-file=$PW_DIR/.samhain_log --with-pid-file=$PW_DIR/.samhain_lock --enable-debug=gdb"; export SERVER_BUILDOPTS 26 27 CLIENT_BUILDOPTS="--quiet $TRUST --enable-network=client --enable-srp --prefix=$PW_DIR --with-tmp-dir=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER$RCFILE --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --enable-suidcheck --enable-debug"; export CLIENT_BUILDOPTS 28 28 29 29 do_test_1_a () { … … 233 233 } 234 234 235 MAXTEST= 6; export MAXTEST235 MAXTEST=4; export MAXTEST 236 236 237 237 testrun2a () … … 280 280 fi 281 281 # 282 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} -- enable-encrypt=1"; export SERVER_BUILDOPTS283 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} -- enable-encrypt=1"; export CLIENT_BUILDOPTS282 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --disable-ipv6"; export SERVER_BUILDOPTS 283 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --disable-ipv6"; export CLIENT_BUILDOPTS 284 284 # 285 285 testrun2a_internal 286 286 do_test_1_a 287 287 if [ $? -eq 0 ]; then 288 [ -z "$quiet" ] && log_ok 4 ${MAXTEST} " Encryption (v1)";288 [ -z "$quiet" ] && log_ok 4 ${MAXTEST} "IPv6 disabled"; 289 289 else 290 [ -z "$quiet" ] && log_fail 4 ${MAXTEST} "Encryption (v1)"; 291 fi 292 # 293 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG}"; export SERVER_BUILDOPTS 294 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --enable-encrypt=1"; export CLIENT_BUILDOPTS 295 # 296 testrun2a_internal 297 do_test_1_a 298 if [ $? -eq 0 ]; then 299 [ -z "$quiet" ] && log_ok 5 ${MAXTEST} "Encryption backward compat"; 300 else 301 [ -z "$quiet" ] && log_fail 5 ${MAXTEST} "Encryption backward compat"; 302 fi 303 # 304 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --disable-ipv6"; export SERVER_BUILDOPTS 305 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --disable-ipv6"; export CLIENT_BUILDOPTS 306 # 307 testrun2a_internal 308 do_test_1_a 309 if [ $? -eq 0 ]; then 310 [ -z "$quiet" ] && log_ok 6 ${MAXTEST} "IPv6 disabled"; 311 else 312 [ -z "$quiet" ] && log_fail 6 ${MAXTEST} "IPv6 disabled"; 290 [ -z "$quiet" ] && log_fail 4 ${MAXTEST} "IPv6 disabled"; 313 291 fi 314 292 # -
trunk/test/testrun_2d.sh
r207 r481 101 101 testrun2a_internal 102 102 # 103 for ff in ./rc.*; do 104 ORIGINAL="SetUdpActive=no" 105 REPLACEMENT="ReportCheckflags=yes" 106 ex -s rc.morrigan.localdomain <<EOF 107 %s/$ORIGINAL/$REPLACEMENT/g 108 wq 109 EOF 110 done 111 # 103 112 ORIGINAL="DatabaseSeverity=none" 104 113 REPLACEMENT="DatabaseSeverity=info"
Note:
See TracChangeset
for help on using the changeset viewer.