2016-12-20 05:16:18 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-12-20 05:19:12 -06:00
|
|
|
source scan-dmidecode
|
2016-12-21 19:24:22 -06:00
|
|
|
source test-variables
|
2016-12-20 05:19:12 -06:00
|
|
|
|
2016-12-21 22:21:53 -06:00
|
|
|
echo $$ > /run/test.pid
|
|
|
|
|
2016-12-21 23:24:52 -06:00
|
|
|
TEST_CONTAINER=1
|
|
|
|
export TEST_CONTAINER
|
2017-07-14 05:44:16 -05:00
|
|
|
#scan-netdev
|
2017-01-09 17:36:15 -06:00
|
|
|
#test-memtester
|
|
|
|
#if [[ -f $OUTPUT_DIR/memtester.fail ]] ; then
|
|
|
|
# mkdir -p $SNAPSHOT_D
|
|
|
|
# cp -af $OUTPUT_DIR/* $SNAPSHOT_D/
|
|
|
|
# FAILED_PROCS=`head -1 $OUTPUT_DIR/memtester.fail | sed 's/[^0-9]//g'`
|
|
|
|
# echo "${BLD}$FAILED_PROCS${OFF} have ${RED}FAILED${OFF} the memtester test."
|
|
|
|
# echo "All tests have been stopped..."
|
|
|
|
# echo "${BLD}Please replace the failing memory and run this tests again.${OFF}"
|
|
|
|
# rm -f /run/test.pid
|
|
|
|
# while [[ 1 ]] ; do
|
|
|
|
# sleep 3600
|
|
|
|
# done
|
|
|
|
#fi
|
2017-07-14 05:44:16 -05:00
|
|
|
test-badblocks
|
|
|
|
if [[ -f $OUTPUT_DIR/badblocks.fail ]] ; then
|
|
|
|
echo "One or more disks have ${RED}FAILED${OFF} the badblocks test."
|
|
|
|
echo "${BLD}Please replace the failing disks and restart this tests again.{OFF}"
|
|
|
|
rm -f /run/test.pid
|
|
|
|
while [[ 1 ]] ; do
|
|
|
|
sleep 3600
|
|
|
|
done
|
|
|
|
fi
|
2016-12-20 05:19:12 -06:00
|
|
|
|
2017-01-09 18:00:07 -06:00
|
|
|
#test-memtester summary
|
2017-07-14 05:44:16 -05:00
|
|
|
test-badblocks summary
|
2017-01-16 03:05:51 -06:00
|
|
|
|
2017-07-14 05:44:16 -05:00
|
|
|
#test-fio
|
|
|
|
#test-pmbw
|
|
|
|
#test-linpack
|
2016-12-20 05:19:12 -06:00
|
|
|
|
2016-12-21 23:24:52 -06:00
|
|
|
# Take snapshot
|
|
|
|
mkdir -p $SNAPSHOT_D
|
|
|
|
cp -af $OUTPUT_DIR/* $SNAPSHOT_D/
|
|
|
|
|
2016-12-21 22:21:53 -06:00
|
|
|
rm -f /run/test.pid
|
2017-07-14 05:44:16 -05:00
|
|
|
while [[ 1 ]] ; do
|
2016-12-21 22:21:53 -06:00
|
|
|
sleep 3600
|
2017-07-14 05:44:16 -05:00
|
|
|
done
|
2017-01-19 18:46:27 -06:00
|
|
|
halt
|
2016-12-21 22:21:53 -06:00
|
|
|
|