r306 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-13 01:11:32 +0000 (Wed, 13 Jan 2010)
New Revision: 306
Modified:
trunk/v7.spec.in
Log:
changelog
Modified: trunk/v7.spec.in
===================================================================
--- trunk/v7.spec.in 2010-01-13 01:02:32 UTC (rev 305)
+++ trunk/v7.spec.in 2010-01-13 01:11:32 UTC (rev 306)
@@ -68,6 +68,16 @@
/usr/share/man/man8/v7.8.gz
%changelog
+* Tue Jan 12 2010 Greg Nichols <gnichols(a)redhat.com>
+
+V7 1.0 R23
+
+ 554915 - FEAT: v7 needs a RTEval test
+ 523824 - FEAT: v7 should fv_* tests should support KVM
+ 488145 - FEAT: HTS should provide a run-time dependency option for installation
+ 474856 - CPUScaling Fails in HTS 5.3-3
+
+
* Thu Dec 17 2009 Greg Nichols <gnichols(a)redhat.com>
V7 1.0 R21
14 years, 4 months
r305 - trunk/tests/rteval
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-13 01:02:32 +0000 (Wed, 13 Jan 2010)
New Revision: 305
Modified:
trunk/tests/rteval/v7_rteval.py
Log:
554915 - FEAT: v7 needs a RTEval test
Modified: trunk/tests/rteval/v7_rteval.py
===================================================================
--- trunk/tests/rteval/v7_rteval.py 2010-01-13 00:55:20 UTC (rev 304)
+++ trunk/tests/rteval/v7_rteval.py 2010-01-13 01:02:32 UTC (rev 305)
@@ -54,12 +54,8 @@
# If one of the /sys/class/dmi/id files is missing, abort this test planning
return ()
- # Prepare rteval
- import rteval.rteval
+
- args = ['-d', '4h']
- self.rteval = rteval.rteval.RtEval(args)
-
ret = list()
ret.append(self.makeCopy())
return ret
@@ -68,8 +64,19 @@
def run(self):
FAILED = 1
PASSED = 0
-
- if self.rteval.rteval() != 0:
+
+ # Prepare rteval
+ try:
+ import rteval.rteval
+
+ args = ['-d', '4h']
+ self.rteval = rteval.rteval.RtEval(args)
+
+ if self.rteval.rteval() != 0:
+ print "Error: could not intitialize RTEval"
+ return FAILED
+ except Exception, e:
+ print "Error: could not intitialize RTEval"
return FAILED
# Analyse the result, make sure system latency is within accepted boundaries
14 years, 4 months
r304 - trunk/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-13 00:55:20 +0000 (Wed, 13 Jan 2010)
New Revision: 304
Modified:
trunk/v7/hardwaretest.py
Log:
488145 - FEAT: HTS should provide a run-time dependency option for installation \n- adds --mode auto support
Modified: trunk/v7/hardwaretest.py
===================================================================
--- trunk/v7/hardwaretest.py 2010-01-13 00:51:00 UTC (rev 303)
+++ trunk/v7/hardwaretest.py 2010-01-13 00:55:20 UTC (rev 304)
@@ -386,7 +386,7 @@
for rpm in missingRPMs:
missingRPMList = "%s %s" % (missingRPMList, rpm)
print missingRPMList
- if self.ui.promptConfirm("Would you like to install them now?"):
+ if self.options.mode == Constants.auto or self.ui.promptConfirm("Would you like to install them now?"):
try:
yum = Command("yum install -y " + missingRPMList)
print "Running yum: --------------------------------"
14 years, 4 months
r303 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-01-13 00:51:00 +0000 (Wed, 13 Jan 2010)
New Revision: 303
Modified:
trunk/Makefile
Log:
R23
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2010-01-12 17:05:34 UTC (rev 302)
+++ trunk/Makefile 2010-01-13 00:51:00 UTC (rev 303)
@@ -14,7 +14,7 @@
# Author: Greg Nichols
V7_VERSION := 1.0
-V7_RELEASE := 22
+V7_RELEASE := 23
V7_VERSION_RELEASE := $(V7_VERSION)-$(V7_RELEASE)
V7_VERSION_PY := v7/version.py
V7_SVN_MODULE := svn+ssh://svn.fedorahosted.org/svn/v7
14 years, 4 months
r302 - trunk/tests/rteval
by David Sommerseth
Author: dsommers
Date: 2010-01-12 17:05:34 +0000 (Tue, 12 Jan 2010)
New Revision: 302
Modified:
trunk/tests/rteval/v7_rteval.py
Log:
Make runtime for rteval 4h, and use more sensible PASS values
Modified: trunk/tests/rteval/v7_rteval.py
===================================================================
--- trunk/tests/rteval/v7_rteval.py 2010-01-12 17:05:27 UTC (rev 301)
+++ trunk/tests/rteval/v7_rteval.py 2010-01-12 17:05:34 UTC (rev 302)
@@ -57,7 +57,7 @@
# Prepare rteval
import rteval.rteval
- args = ['-d', '30s']
+ args = ['-d', '4h']
self.rteval = rteval.rteval.RtEval(args)
ret = list()
@@ -77,8 +77,7 @@
xpath = report.xpathNewContext()
ok_values = {"/rteval/cyclictest/system/statistics/maximum": 100.0,
- "/rteval/cyclictest/system/statistics/standard_deviation": 10.0,
- "/rteval/cyclictest/system/statistics/variance": 5.0 }
+ "/rteval/cyclictest/system/statistics/standard_deviation": 3.0}
for k in ok_values.keys():
val = xpath.xpathEval(k)
14 years, 4 months
r301 - trunk
by David Sommerseth
Author: dsommers
Date: 2010-01-12 17:05:27 +0000 (Tue, 12 Jan 2010)
New Revision: 301
Modified:
trunk/Makefile
Log:
Fixed a few minor things in Makefile to make the rpm rule work again
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2010-01-12 17:05:18 UTC (rev 300)
+++ trunk/Makefile 2010-01-12 17:05:27 UTC (rev 301)
@@ -81,10 +81,10 @@
v7.spec: v7.spec.in Makefile
cat $< | sed -e 's/@V7_VERSION@/$(V7_VERSION)/g' -e 's/@V7_RELEASE@/$(V7_RELEASE)/g' -e 's/@V7_RHEL_VERSION@/$(V7_RHEL_VERSION)/g'> $@
-rpm-prep: v7-$(V7_VERSION_RELEASE).tar.bz2 v7.spec
+rpm-prep: v7-$(V7_VERSION_RELEASE).el$(V7_RHEL_VERSION).tar.bz2 v7.spec
rm -rf rpm
mkdir -p rpm/{BUILD,RPMS,SRPMS,SOURCES,SPECS}
- cp v7-$(V7_VERSION_RELEASE).tar.bz2 rpm/SOURCES/
+ cp v7-$(V7_VERSION_RELEASE).el$(V7_RHEL_VERSION).tar.bz2 rpm/SOURCES/
cp v7.spec rpm/SPECS
srpm: rpm-prep
14 years, 4 months
r300 - trunk/tests/rteval
by David Sommerseth
Author: dsommers
Date: 2010-01-12 17:05:18 +0000 (Tue, 12 Jan 2010)
New Revision: 300
Modified:
trunk/tests/rteval/v7_rteval.py
Log:
Improved rteval result checking, by validating some of the measurement data
Modified: trunk/tests/rteval/v7_rteval.py
===================================================================
--- trunk/tests/rteval/v7_rteval.py 2010-01-12 17:05:10 UTC (rev 299)
+++ trunk/tests/rteval/v7_rteval.py 2010-01-12 17:05:18 UTC (rev 300)
@@ -69,11 +69,29 @@
FAILED = 1
PASSED = 0
- if self.rteval.rteval() == 0:
- return PASSED
- return FAILED
+ if self.rteval.rteval() != 0:
+ return FAILED
+ # Analyse the result, make sure system latency is within accepted boundaries
+ report = self.rteval.XMLreport()
+ xpath = report.xpathNewContext()
+ ok_values = {"/rteval/cyclictest/system/statistics/maximum": 100.0,
+ "/rteval/cyclictest/system/statistics/standard_deviation": 10.0,
+ "/rteval/cyclictest/system/statistics/variance": 5.0 }
+
+ for k in ok_values.keys():
+ val = xpath.xpathEval(k)
+ if len(val) == 1:
+ v = float(val[0].get_content())
+ print "Checking %s: Must be < %f, measured to %f ..." % (k, ok_values[k], v),
+ if ok_values[k] < v:
+ print "** FAILED **"
+ return FAILED
+ print "PASS"
+ return PASSED
+
+
if __name__ == "__main__":
test = v7RTeval()
test.plan(None)
14 years, 4 months
r299 - trunk/tests/rteval
by David Sommerseth
Author: dsommers
Date: 2010-01-12 17:05:10 +0000 (Tue, 12 Jan 2010)
New Revision: 299
Added:
trunk/tests/rteval/runtest.sh
Modified:
trunk/tests/rteval/Makefile
trunk/tests/rteval/v7_rteval.py
Log:
Final fixes to make v7 run the v7_rteval.py without failures
Modified: trunk/tests/rteval/Makefile
===================================================================
--- trunk/tests/rteval/Makefile 2010-01-12 17:05:00 UTC (rev 298)
+++ trunk/tests/rteval/Makefile 2010-01-12 17:05:10 UTC (rev 299)
@@ -15,7 +15,7 @@
.PHONY: all install download clean
-FILES=$(METADATA) runtest.sh lid.py
+FILES=$(METADATA) runtest.sh v7_rteval.py
run: $(FILES) build
./runtest.sh
Added: trunk/tests/rteval/runtest.sh
===================================================================
--- trunk/tests/rteval/runtest.sh (rev 0)
+++ trunk/tests/rteval/runtest.sh 2010-01-12 17:05:10 UTC (rev 299)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+v7-run-simple-test ${TEST:-$(basename $PWD)} ./v7_rteval.py
Property changes on: trunk/tests/rteval/runtest.sh
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/tests/rteval/v7_rteval.py
===================================================================
--- trunk/tests/rteval/v7_rteval.py 2010-01-12 17:05:00 UTC (rev 298)
+++ trunk/tests/rteval/v7_rteval.py 2010-01-12 17:05:10 UTC (rev 299)
@@ -22,6 +22,7 @@
from v7.test import Test
from v7.tags import Constants
+from v7.tags import DeviceClass
class v7RTeval(Test):
@@ -30,8 +31,8 @@
self.interactive = False
self.data = {}
self.rteval = None
+ self.deviceClass = DeviceClass.processor
-
def __read_sys_dmi(self, name):
try:
f = open("/sys/class/dmi/id/%s" % name, "r")
@@ -61,7 +62,6 @@
ret = list()
ret.append(self.makeCopy())
- self.setDevice('rt-hw')
return ret
14 years, 4 months
r298 - trunk/tests/rteval
by David Sommerseth
Author: dsommers
Date: 2010-01-12 17:05:00 +0000 (Tue, 12 Jan 2010)
New Revision: 298
Added:
trunk/tests/rteval/Makefile
Log:
Added needed Makefile for v7 packaging
Added: trunk/tests/rteval/Makefile
===================================================================
--- trunk/tests/rteval/Makefile (rev 0)
+++ trunk/tests/rteval/Makefile 2010-01-12 17:05:00 UTC (rev 298)
@@ -0,0 +1,46 @@
+# V7
+TOPLEVEL_NAMESPACE=/V7
+
+# The name of the package under test:
+PACKAGE_NAME=v7
+
+# The path of the test below the package:
+RELATIVE_PATH=rteval
+
+# Version of the Test. Used with make tag.
+export TESTVERSION=1.1
+
+# The compiled namespace of the test.
+export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)
+
+.PHONY: all install download clean
+
+FILES=$(METADATA) runtest.sh lid.py
+
+run: $(FILES) build
+ ./runtest.sh
+
+build: $(BUILT_FILES)
+ chmod a+x ./runtest.sh ./v7_rteval.py
+
+clean:
+ rm -f *~ $(BUILT_FILES)
+
+# Include Common Makefile
+include $(DESTDIR)/usr/share/v7/lib/v7-make.include
+
+# Generate the testinfo.desc here:
+$(METADATA): Makefile
+ @touch $(METADATA)
+ @echo "Owner: David Sommerseth <davids(a)redhat.com>" > $(METADATA)
+ @echo "Name: $(TEST)" >> $(METADATA)
+ @echo "Path: $(TEST_DIR)" >> $(METADATA)
+ @echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
+ @echo "Description: Hardware Certification Real-Time kernel validation Test">> $(METADATA)
+ @echo "TestTime: 10h" >> $(METADATA)
+ @echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA)
+ @echo "Requires: $(PACKAGE_NAME)" >> $(METADATA)
+# @echo "X-RunForDevice: 'lid' in button.type" >> $(METADATA)
+ @echo "X-Interactive: no" >> $(METADATA)
+
+
14 years, 4 months
r297 - in trunk/tests: . rteval
by David Sommerseth
Author: dsommers
Date: 2010-01-12 17:04:53 +0000 (Tue, 12 Jan 2010)
New Revision: 297
Modified:
trunk/tests/Makefile
trunk/tests/rteval/v7_rteval.py
Log:
More fixes to make the v7_rteval test work
Modified: trunk/tests/Makefile
===================================================================
--- trunk/tests/Makefile 2010-01-12 17:04:41 UTC (rev 296)
+++ trunk/tests/Makefile 2010-01-12 17:04:53 UTC (rev 297)
@@ -15,11 +15,11 @@
.PHONY: clean install
-SUBDIRS := audio bluray cdrom dvd core floppy info memory network pccard storage tape usb video battery suspend lid expresscard cpuscaling profiler fv_core fv_memory fv_network fv_storage
+SUBDIRS := audio bluray cdrom dvd core floppy info memory network pccard storage tape usb video battery suspend lid expresscard cpuscaling profiler fv_core fv_memory fv_network fv_storage rteval
clean:
for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
-
+
install:
mkdir -p $(DESTDIR)/usr/share/v7/tests
for i in $(SUBDIRS); do cp -r $$i $(DESTDIR)/usr/share/v7/tests; done
Modified: trunk/tests/rteval/v7_rteval.py
===================================================================
--- trunk/tests/rteval/v7_rteval.py 2010-01-12 17:04:41 UTC (rev 296)
+++ trunk/tests/rteval/v7_rteval.py 2010-01-12 17:04:53 UTC (rev 297)
@@ -58,9 +58,13 @@
args = ['-d', '30s']
self.rteval = rteval.rteval.RtEval(args)
- return (self.makeCopy())
+ ret = list()
+ ret.append(self.makeCopy())
+ self.setDevice('rt-hw')
+ return ret
+
def run(self):
FAILED = 1
PASSED = 0
14 years, 4 months