Changeset 25 for trunk/test
- Timestamp:
- Mar 14, 2006, 10:27:38 PM (19 years ago)
- Location:
- trunk/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_1.sh
r22 r25 22 22 testrun1_setup=0 23 23 24 MAXTEST=1 0; export MAXTEST24 MAXTEST=11; export MAXTEST 25 25 26 26 test_dirs () { … … 46 46 fi 47 47 done 48 } 49 50 # 51 # combine file check schedule with one-shot mode 52 # 53 TESTPOLICY_11=" 54 [ReadOnly] 55 dir=99${BASE} 56 " 57 58 mod_testdata_11 () { 59 sleep 1 60 echo "foobar" >"${BASE}/c/x"; # bad 61 chmod 0555 "${BASE}/a/y"; # bad 62 ORIGINAL='SetFilecheckTime=60' 63 REPLACEMENT='FileCheckScheduleOne = 6 12 * * *' 64 ex $RCFILE <<EOF 65 :%s/${ORIGINAL}/${REPLACEMENT}/g 66 :wq 67 EOF 68 } 69 70 chk_testdata_11 () { 71 # CDIRS="a b c a/a a/b a/c a/a/a a/a/b a/a/c a/a/a/a a/a/a/b a/a/a/c"; 72 tmp=`grep CRIT $LOGFILE | wc -l` 73 if [ $tmp -ne 2 ]; then 74 [ -z "$verbose" ] || log_msg_fail "policy count"; 75 return 1 76 fi 77 egrep "CRIT.*POLICY \[ReadOnly\] C-------TS.*${BASE}/c/x" $LOGFILE >/dev/null 2>&1 78 if [ $? -ne 0 ]; then 79 [ -z "$verbose" ] || log_msg_fail "${BASE}/c/x"; 80 return 1 81 fi 82 egrep "CRIT.*POLICY \[ReadOnly\] -----M--T-.*${BASE}/a/y" $LOGFILE >/dev/null 2>&1 83 if [ $? -ne 0 ]; then 84 [ -z "$verbose" ] || log_msg_fail "${BASE}/a/y"; 85 return 1 86 fi 87 CDIRS="a a/a a/b a/c c b a/a/a a/a/b a/a/c a/a/a/a a/a/a/b a/a/a/c"; 88 NDIRS=""; 89 test_dirs; 90 return $? 48 91 } 49 92 -
trunk/test/testrun_2a.sh
r22 r25 140 140 rm -f ./rc.${SH_LOCALHOST} 141 141 rm -f ./file.${SH_LOCALHOST} 142 rm -f "./rc.${ALTHOST}" 143 rm -f "./file.${ALTHOST}" 142 144 143 145 cp ${SCRIPTDIR}/testrc_2.in testrc_2 … … 196 198 } 197 199 198 MAXTEST= 1; export MAXTEST200 MAXTEST=5; export MAXTEST 199 201 200 202 testrun2a () … … 209 211 # 210 212 testrun2a_internal 211 #212 213 do_test_1_a 213 214 if [ $? -eq 0 ]; then … … 215 216 else 216 217 [ -z "$quiet" ] && log_fail 1 ${MAXTEST} "Client download+logging"; 218 fi 219 # 220 SERVER_BUILDOPTS_ORIG="${SERVER_BUILDOPTS}" 221 CLIENT_BUILDOPTS_ORIG="${CLIENT_BUILDOPTS}" 222 # 223 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --disable-srp" 224 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --disable-srp" 225 # 226 testrun2a_internal 227 do_test_1_a 228 if [ $? -eq 0 ]; then 229 [ -z "$quiet" ] && log_ok 2 ${MAXTEST} "SRP disabled"; 230 else 231 [ -z "$quiet" ] && log_fail 2 ${MAXTEST} "SRP disabled"; 232 fi 233 # 234 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --disable-encrypt" 235 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --disable-encrypt" 236 # 237 testrun2a_internal 238 do_test_1_a 239 if [ $? -eq 0 ]; then 240 [ -z "$quiet" ] && log_ok 3 ${MAXTEST} "Encryption disabled"; 241 else 242 [ -z "$quiet" ] && log_fail 3 ${MAXTEST} "Encryption disabled"; 243 fi 244 # 245 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --enable-encrypt=1" 246 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --enable-encrypt=1" 247 # 248 testrun2a_internal 249 do_test_1_a 250 if [ $? -eq 0 ]; then 251 [ -z "$quiet" ] && log_ok 4 ${MAXTEST} "Encryption (v1)"; 252 else 253 [ -z "$quiet" ] && log_fail 4 ${MAXTEST} "Encryption (v1)"; 254 fi 255 # 256 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG}" 257 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --enable-encrypt=1" 258 # 259 testrun2a_internal 260 do_test_1_a 261 if [ $? -eq 0 ]; then 262 [ -z "$quiet" ] && log_ok 5 ${MAXTEST} "Encryption backward compat"; 263 else 264 [ -z "$quiet" ] && log_fail 5 ${MAXTEST} "Encryption backward compat"; 217 265 fi 218 266 #
Note:
See TracChangeset
for help on using the changeset viewer.