3 # Iterations are set per test, so more time-consuming tests can be run less
7 source `dirname $0`/utils.sh
20 PRINCIPAL=$( get_principal $1)
21 PASSWORD=$( get_password $1)
23 echo -e "\tKINIT ${PRINCIPAL}"
25 START_TIME=$( start_timer )
28 for i in $(${SEQ} 1 $ITERATIONS); do
29 call_kinit "${PRINCIPAL}" "${PASSWORD}"
35 STOP_TIME=$( stop_timer )
37 TOTAL_TIME=$( total_time $START_TIME $STOP_TIME )
39 echo -e "\t\ttotal time:\t\t${TOTAL_TIME}s"
41 LOGINS_PER_MINUTE=$(iterations_per_minute $START_TIME $STOP_TIME $ITERATIONS)
43 echo -e "\t\titerations/min:\t\t$LOGINS_PER_MINUTE"