Update of /cvsroot/sblim/gather/provider/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22228/test
Modified Files:
test-gather.sh
Log Message:
Restructured for Autoconf/Automakes. Support of the SBLIM "ecosystem".
Index: test-gather.sh
===================================================================
RCS file: /cvsroot/sblim/gather/provider/test/test-gather.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- test-gather.sh 22 Sep 2004 12:16:47 -0000 1.7
+++ test-gather.sh 24 Jun 2005 12:04:57 -0000 1.8
@@ -57,7 +57,7 @@
#echo k | gatherctl
#echo d | gatherctl
GATHER=`wbemein http://${SBLIM_TESTSUITE_ACCESS}localhost/root/cimv2:Linux_MetricGatherer 2>&1`
-if echo $GATHER | grep Linux_MetricDataGatherer > /dev/null
+if echo $GATHER | grep -v Linux_MetricGatherer > /dev/null
then
echo "Error occurred listing the Metric Gatherer ... are the providers installed?"
echo $GATHER
@@ -76,6 +76,22 @@
exit -1
fi
+# Initialize Repository Service
+#echo k | reposctl
+#echo d | reposctl
+REPOS=`wbemein http://${SBLIM_TESTSUITE_ACCESS}localhost/root/cimv2:Linux_MetricRepositoryService 2>&1`
+if echo $REPOS | grep -v Linux_MetricRepositoryService > /dev/null
+then
+ echo "Error occurred listing the Repository Service ... are the providers installed?"
+ echo $REPOS
+ exit -1
+fi
+
+# Stopping everything to be in a defined state then start
+wbemcm http://${SBLIM_TESTSUITE_ACCESS}$REPOS StopService > /dev/null
+
+wbemcm http://${SBLIM_TESTSUITE_ACCESS}$REPOS StartService > /dev/null
+
# Wait 60 seconds to make sure that enough samples are generated
echo "need to wait 60 seconds for gatherd and sampling initialization ... please stand by ... we will be back ;-) ...";
sleep 60
|