2017-01-13 05:34:28 -06:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
2017-01-19 18:46:27 -06:00
|
|
|
|
if [[ -z $OUTPUT_DIR ]] ; then
|
|
|
|
|
source scan-dmidecode
|
|
|
|
|
fi
|
2017-01-13 20:45:31 -06:00
|
|
|
|
source test-variables
|
2017-01-13 05:34:28 -06:00
|
|
|
|
|
2017-01-13 20:45:31 -06:00
|
|
|
|
mkdir -pv $OUTPUT_DIR/pmbw
|
2017-01-14 07:26:19 -06:00
|
|
|
|
cd $OUTPUT_DIR/pmbw
|
2017-01-13 20:45:31 -06:00
|
|
|
|
MY_DATE=`date +%Y-%m-%d_%H-%M-%S`
|
|
|
|
|
if [[ -f stats.txt ]] ; then
|
|
|
|
|
mv -vf stats.txt stats.txt.old-$MY_DATE
|
|
|
|
|
fi
|
2017-01-13 05:54:00 -06:00
|
|
|
|
|
2017-01-13 20:45:31 -06:00
|
|
|
|
# Minimal test (QA)
|
|
|
|
|
# pmbw ‐f ScanWrite64PtrSimpleLoop -Q -s 4096 -S 8192 -p6 -P7
|
|
|
|
|
#(2017-01-13 05:50:00) Rolando Cedillo Caballero: Digamos probar desde 2^11 a 2^25 y con eso bastaría.
|
|
|
|
|
#(2017-01-13 05:51:19) Rolando Cedillo Caballero: 2^11 a 2^26 debería bastar si no tarda más de un par de horas.
|
2017-01-19 18:46:27 -06:00
|
|
|
|
pmbw ‐f ScanWrite64PtrSimpleLoop -Q -s 2048 -S $((1024*1024*1024))
|
2017-01-13 05:54:00 -06:00
|
|
|
|
|
2017-01-13 20:45:31 -06:00
|
|
|
|
RES=$?
|
|
|
|
|
ERRNO=$!
|
2017-01-13 05:54:00 -06:00
|
|
|
|
|
2017-01-13 20:45:31 -06:00
|
|
|
|
if [[ $RES != '0' ]] ; then
|
2017-01-14 07:26:19 -06:00
|
|
|
|
echo "${RES_FAIL} pmbw exited abnormally with error code: $BLD$ERRNO$OFF";
|
|
|
|
|
else
|
|
|
|
|
echo "${RES_OK} pmbw finished successfully. Results in stats.txt"
|
2017-01-13 20:45:31 -06:00
|
|
|
|
fi
|
2017-01-13 05:54:00 -06:00
|
|
|
|
|
2017-01-13 20:45:31 -06:00
|
|
|
|
|