------------------------------------------------------------------------
r21866 | raeburn | 2009-02-02 13:42:06 -0500 (Mon, 02 Feb 2009) | 8 lines
Changed paths:
M /trunk/src/lib/kadm5/unit-test/api.0/mod-principal.exp
M /trunk/src/lib/kadm5/unit-test/api.2/mod-principal.exp
ticket: 6357
subject: address lib/kadm5 test suite slowness
target_version: 1.7
In mod-principal tests for clearing the principal's policy, instead of
just testing to see if the wrong string is output and timing out
looking for it, check also for the new expected value. Cuts test
suite run time by about two minutes for each pass (client vs server).
------------------------------------------------------------------------
r21865 | raeburn | 2009-02-02 13:29:28 -0500 (Mon, 02 Feb 2009) | 1 line
Changed paths:
M /trunk/src/kadmin/testing/scripts/start_servers_local
don't delay so long while waiting for daemon startup
------------------------------------------------------------------------
ticket: 6357
version_fixed: 1.7
status: resolved
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-7@22008
dc483132-0cff-0310-8789-
dd5450dbe970
(trap "" 2; cd $TOP/../kdc; ./krb5kdc $kdc_args; touch $kdc_start_file) \
< /dev/null > $usrtmp/kdc-log.$USER 2>&1 &
-s=10
+s=1
max_s=60
sofar_s=0
timewait_s=300
while true; do
rm -f $adm_start_file
- (sleep 5; cd $TOP/server; ./kadmind $ovadm_args; \
+ (sleep 1; cd $TOP/server; ./kadmind $ovadm_args; \
touch $adm_start_file) < /dev/null > $usrtmp/kadm-log.$USER 2>&1 &
# wait until they start
send "lindex \$principal 10\n"
expect {
-re "test-pol\n$prompt$" { fail "$test" }
+ -re "null\n$prompt$" { pass "$test" }
timeout { pass "$test" }
}
send "lindex \$p1 6\n"
send "lindex \$principal 10\n"
expect {
-re "test-pol\n$prompt$" { fail "$test" }
+ -re "null\n$prompt$" { pass "$test" }
timeout { pass "$test" }
}
send "lindex \$p1 6\n"