+ echo -n "============================== Starting $COMMAND:runtest on "
+ date
+
+
+ ### compute URL to the myplc package
+ build=$1; shift
+ buildname=$(basename $build)
+ cd $build
+ rpm=$(find RPMS -name myplc\*.rpm )
+ url=${TESTBUILDURL}${DISTRO}/${buildname}/${rpm}
+ ### checkout the test material
+ svn co ${TESTSVNPATH} plctest
+ # compute test directory name on test box
+ testdir=plctest-${buildname}
+ # rsync/push test material onto the test box
+ ssh ${TESTBOXSSH} mkdir -p ${testdir}
+ rsync -a -v plctest/ ${TESTBOXSSH}:${testdir}
+ # invoke test on testbox
+ ssh ${TESTBOXSSH} python -u ${testdir}/${TESTSCRIPT} ${url}
+ #invoke make install from build to the testbox
+ make install PLCHOST=${TESTBOX}
+
+ if [ "$?" != 0 ] ; then
+ failure
+ fi
+
+ set +x