#! /bin/bash grep -E "SUSE Linux Enterprise Server 9" /etc/SuSE-release &> /dev/null && zypper sa http://dist.suse.de/ibs/QA:/Head/SLES_9/QA:Head.repo QA-Pool grep -E "SUSE Linux Enterprise Server 10" /etc/SuSE-release &> /dev/null && zypper sa http://dist.suse.de/ibs/QA:/Head/SLE_10_SP3/QA:Head.repo QA-Pool grep -E "SUSE Linux Enterprise Server 11" /etc/SuSE-release &> /dev/null && zypper ar http://dist.suse.de/ibs/QA:/Head/SUSE_SLE-11-SP1_GA/QA:Head.repo QA-Pool grep "openSuSE" /etc/SuSE-release &> /dev/null && zypper ar http://dist.suse.de/ibs/QA:/Head/openSUSE_Factory/QA:Head.repo QA-Pool zypper --non-interactive install ltp ltp-ctcs2-glue sysbench sysbench-ctcs2-glue lmbench lmbench-ctcs2-glue memtester newburn qa_tools cp /usr/share/qa/tcf/memtester.tcf /usr/share/qa/tcf/memtester.tcf.bak sed "s%18h%3h%" /usr/share/qa/tcf/memtester.tcf.bak > /usr/share/qa/tcf/memtester.tcf cp /usr/lib/ctcs2/tools/newburn-run /usr/lib/ctcs2/tools/newburn-run.bak sed "s%24h%3h%" /usr/lib/ctcs2/tools/newburn-run.bak > /usr/lib/ctcs2/tools/newburn-run echo -e "All tests starts now, see screen -r tests for details\n" screen -L -S tests -d -m /bin/bash -c '( cd /usr/lib/ctcs2 logger ltp runs now ./tools/ltp-run logger newburn runs now ./tools/newburn-run logger memtester runs now ./tools/memtester-run logger lmbench runs now ./tools/lmbench-run logger sysbench runs now ./tools/sysbench-run logger END of Kernel tests echo "All tests have finished. Next is to submit results." echo " " > /etc/motd )'