From: Thierry Parmentelat Date: Tue, 19 Aug 2008 09:56:01 +0000 (+0000) Subject: does not belong here X-Git-Tag: tests-4.3-0~114 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4080e124a38edb06f05af065a52c16e464d2c94c;p=tests.git does not belong here --- diff --git a/system/selftest b/system/selftest deleted file mode 100755 index 595e8da..0000000 --- a/system/selftest +++ /dev/null @@ -1,162 +0,0 @@ -#!/bin/bash - -SELF_HOST=$1 -SELF_IP=$2 -# all below addresses are those of the qemu host -[ -z "$SELF_HOST" ] && SELF_HOST="selftest.$(hostname)" -[ -z "$SELF_IP" ] && SELF_IP="10.1.159.48" - - -#################################################### -# setup MyPLC - -# install from repo -rpm -q myplc-native > /dev/null -installed=$? -[ $installed -eq 1 ] && yum -y install myplc-native - -# setup qemu to run the node from the bootcd -rpm -q qemu > /dev/null -installed=$? -[ $installed -eq 1 ] && yum -y install qemu - - -exit 0 - - -# make sure its stopped -service plc stop - -# turn off plc until its been configured -chkconfig plc off - -#################################################### -# configure myplc for testing purposes -config=$(mktemp) - -function genpassword() -{ - len=$1 - [ -z "$len" ] && len=8 - python < $config < /etc/planetlab/pw -chmod 400 /etc/planetlab/pw - -# remove temporary config file -rm -f $config - -service plc start - -#################################################### -QA_TESTSUITE="qaapi" -SVNPATH="http://svn.planet-lab.org/svn/" - -# check out test suite -# temporarily disabling -- mef -#svn export ${SVNPATH}/tests/trunk/${QA_TESTSUITE} /tmp/${QA_TESTSUITE} -#cd /tmp/${QA_TESTSUITE}/ -#chmod +x runtests.py -#chmod +x qa/tests/* -#./runtests.py - -#################################################### -# configure a site and a node @ the local myplc for qemu testing - -# configure a selftest site -TESTVERS="3.4" -TESTHOST="qemu-1.$(hostname)" -TESTSITE="st" -TESTNAME="Self Test" -TESTABR="selftest" -TESTURL="http://selftest.doesnotexist" -TESTDISK="/selftest.img" -TESTCONF="/selftest.txt" -config=$(mktemp) -cat > $config < for serial line console -# -boot d -> to boot from cdrom -# -cdrom -> specifies iso file to serve as cdrom -# -m 512 -> 512MB memory - -[ -f "$TESTDISK" -a -f "$TESTISO" ] && qemu-system-x86_64 -boot d -nographic -m 512 -cdrom $TESTISO $TESTDISK - -# run node tests - -exit 0