30 lines
822 B
Bash
Executable file
30 lines
822 B
Bash
Executable file
#!/bin/bash
|
||
|
||
if [[ -z $OUTPUT_DIR ]] ; then
|
||
source scan-dmidecode
|
||
fi
|
||
source test-variables
|
||
|
||
mkdir -pv $OUTPUT_DIR/pmbw
|
||
cd $OUTPUT_DIR/pmbw
|
||
MY_DATE=`date +%Y-%m-%d_%H-%M-%S`
|
||
if [[ -f stats.txt ]] ; then
|
||
mv -vf stats.txt stats.txt.old-$MY_DATE
|
||
fi
|
||
|
||
# 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.
|
||
pmbw ‐f ScanWrite64PtrSimpleLoop -Q -s 2048 -S $((1024*1024*1024))
|
||
|
||
RES=$?
|
||
ERRNO=$!
|
||
|
||
if [[ $RES != '0' ]] ; then
|
||
echo "${RES_FAIL} pmbw exited abnormally with error code: $BLD$ERRNO$OFF";
|
||
else
|
||
echo "${RES_OK} pmbw finished successfully. Results in stats.txt"
|
||
fi
|
||
|
||
|