hw-test/scripts/test-all

59 lines
1.3 KiB
Bash
Executable file

#!/bin/bash
source scan-dmidecode
source test-variables
echo $$ > /run/test.pid
TEST_CONTAINER=1
export TEST_CONTAINER
# Escaneos iniciales. Solo esc aneo
scan-netdev
scan-hdd
scan-meminfo
lspci > $OUTPUT_DIR/lspci
# De aquí en adelante lo dejo comentado para los siguientes escaneos
##scan-netdev
##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
#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
#
##test-memtester summary
#test-badblocks summary
#
##test-fio
##test-pmbw
##test-linpack
#
## Take snapshot
#mkdir -p $SNAPSHOT_D
#cp -af $OUTPUT_DIR/* $SNAPSHOT_D/
#
#rm -f /run/test.pid
#while [[ 1 ]] ; do
# sleep 3600
#done
poweroff