re-run print size test several times to minimize possible disk cache impact

This commit is contained in:
George Danchev 2011-07-09 10:17:29 +00:00
parent 1d6d36488b
commit 8b95d59332

View File

@ -41,20 +41,30 @@ do
done
printf "done.\n"
# Disk cache might play dirty games, so re-run these several times?
printf "\n${SELF}: Performing several print size runs to neutralize possible disk cache impact.\n"
#
if [ -x ${RELENG_XORRISO} ]; then
printf "\n${SELF}: Running ${RELENG_XORRISO} -as mkisofs -quiet -print-size ${GEN_DATA_DIR}\n"
time ${RELENG_XORRISO} -as mkisofs -quiet -print-size ${GEN_DATA_DIR}
for run in 1 2 3; do
printf "\n${SELF}: Running ${RELENG_XORRISO} -as mkisofs -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
time ${RELENG_XORRISO} -as mkisofs -quiet -print-size ${GEN_DATA_DIR}
done
fi
#
if [ -x ${RELENG_GENISOIMAGE} ]; then
printf "\n${SELF}: Running ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}\n"
time ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}
for run in 1 2 3; do
printf "\n${SELF}: Running ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
time ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}
done
fi
#
if [ -x ${RELENG_MKISOFS} ]; then
printf "\n${SELF}: Running ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}\n"
time ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}
for run in 1 2 3; do
printf "\n${SELF}: Running ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
time ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}
done
fi
#