r1111 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2011-10-06 15:54:54 +0000 (Thu, 06 Oct 2011)
New Revision: 1111
Modified:
trunk/v7.spec.in
Log:
changelog
Modified: trunk/v7.spec.in
===================================================================
--- trunk/v7.spec.in 2011-10-06 15:53:13 UTC (rev 1110)
+++ trunk/v7.spec.in 2011-10-06 15:54:54 UTC (rev 1111)
@@ -77,6 +77,16 @@
%changelog
+* Tue Oct 04 2011 Greg Nichols <gnichols(a)redhat.com>
+
+V7 1.4 R31
+
+ 734476 - RHEL6.1 32bit/64bit V7 cert info test fail - tech preview
+ 734985 - info: TypeError: coercing to Unicode: need string or buffer, NoneType found
+ 741165 - cpuscaling TraceBack: TypeError: int argument required
+ 741943 - v7 fails with AttributeError: CPUScalingTest instance has no attribute predictedSpeedup
+ 731611 - udp test is missing in network.py
+
* Wed Sep 21 2011 Greg Nichols <gnichols(a)redhat.com>
V7 1.4 R30
12 years, 7 months
r1110 - trunk/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2011-10-06 15:53:13 +0000 (Thu, 06 Oct 2011)
New Revision: 1110
Modified:
trunk/v7/hardwaretest.py
Log:
702695 - v7 server should have it's own package
Modified: trunk/v7/hardwaretest.py
===================================================================
--- trunk/v7/hardwaretest.py 2011-10-04 19:30:19 UTC (rev 1109)
+++ trunk/v7/hardwaretest.py 2011-10-06 15:53:13 UTC (rev 1110)
@@ -431,8 +431,41 @@
print "All required rpms installed"
return True
print ""
+
+ def installServerRPM(self):
+
+ v7ServerRPM = "v7-server"
+ try:
+ rpmQ = Command("rpm -q " + v7ServerRPM)
+ rpmQ.echo()
+ return True
+ except V7CommandException, e:
+ pass # continue
+
+ print "Error: the %s package is not installed." % v7ServerRPM
+ if self.options.mode == Constants.auto or self.ui.promptConfirm("Would you like to install it now?"):
+ try:
+ yum = Command("yum install -y " + v7ServerRPM)
+ sys.stdout.write("Running yum... ")
+ sys.stdout.flush()
+ yum.echo()
+ yum.printOutput()
+ print "done"
+ except V7CommandException, e:
+ print "\nError: Could not install %s" % v7ServerRPM
+ print e
+ print e.command.printErrors()
+ return False
+
+ # otherwise
+ return True
def doServer(self, args):
+
+ if not self.installServerRPM() and not self.Debugging:
+ return False
+
+ #otherwise
if len(args) > 1:
subcommand = args[1]
else:
12 years, 7 months
r1109 - trunk/tests/network
by gnichols@fedoraproject.org
Author: gnichols
Date: 2011-10-04 19:30:19 +0000 (Tue, 04 Oct 2011)
New Revision: 1109
Modified:
trunk/tests/network/network.py
Log:
731611 - udp test is missing in network.py
Modified: trunk/tests/network/network.py
===================================================================
--- trunk/tests/network/network.py 2011-10-04 19:16:34 UTC (rev 1108)
+++ trunk/tests/network/network.py 2011-10-04 19:30:19 UTC (rev 1109)
@@ -745,6 +745,8 @@
success = True
if not self.runSubTest(self.tcpTest, "TCP", "tcp latency and bandwidth test via lmbench"):
success = False
+ if not self.runSubTest(self.udpTest, "UDP", "udp latency test via lmbench"):
+ success = False
if not self.runSubTest(self.httpTransferTest, "HTTP", "HTTP file transfer test"):
success = False
if not self.runSubTest(self.icmpTest, "ICMP"):
12 years, 7 months
r1108 - trunk/tests/cpuscaling
by gnichols@fedoraproject.org
Author: gnichols
Date: 2011-10-04 19:16:34 +0000 (Tue, 04 Oct 2011)
New Revision: 1108
Modified:
trunk/tests/cpuscaling/cpuscaling.py
Log:
741165 - cpuscaling TraceBack: TypeError: int argument required
Modified: trunk/tests/cpuscaling/cpuscaling.py
===================================================================
--- trunk/tests/cpuscaling/cpuscaling.py 2011-10-04 15:46:37 UTC (rev 1107)
+++ trunk/tests/cpuscaling/cpuscaling.py 2011-10-04 19:16:34 UTC (rev 1108)
@@ -169,6 +169,10 @@
return int(freq1) + self.frequencyTolerance*1000 > int(freq2)
def checkSpeedup(self, speedup, warn=False, maximumLimit=True):
+ if not self.predictedSpeedup:
+ self.logWorkloadError("Error: could not predict speedup, unable to evaluate measured speedup")
+ return False
+
message = None
tag = "Error:"
if warn:
@@ -697,6 +701,15 @@
minimumFrequency = self.getPackageParameter("scaling_min_freq")
if not minimumFrequency or not currentFrequency or not self.checkFrequency(minimumFrequency, currentFrequency):
print "Warning: Could not verify that cpu frequency is set to the minimum value of %s" % minimumFrequency
+ # calculate predicted speedup for the package
+ maximumFrequency = self.getPackageParameter("scaling_max_freq")
+ try:
+ self.predictedSpeedup = float(maximumFrequency)/float(minimumFrequency)
+ except Exception, e:
+ print "Error: could not determine predicted speedup"
+ print e
+ self.predictedSpeedup = None
+ success = False
# 9. Run and time non-cacheable work(?) test for each CPU
# 10. Repeat and time until execution times are within self.retryTolerance of each other
@@ -719,14 +732,6 @@
self.currentWorkload = "maximum"
currentFrequency = self.getFrequency()
- maximumFrequency = self.getPackageParameter("scaling_max_freq")
- try:
- self.predictedSpeedup = float(maximumFrequency)/float(minimumFrequency)
- except Exception, e:
- print "Error: could not determine predicted speedup"
- print e
- return False
-
if not maximumFrequency or not currentFrequency or not self.checkFrequency(maximumFrequency, currentFrequency):
print "Warning: Could not verify that cpu frequency is set to the maximum value of %s" % maximumFrequency
@@ -933,9 +938,11 @@
self.dumpTables()
if self.effectiveFrequencySupport:
- self.printFreqSummary("CPU Effective Frequency", package, self.workloadEffectiveFreq)
+ freqTable = self.workloadEffectiveFreq
+ self.printFreqSummary("CPU Effective Frequency", package, freqTable)
else:
- self.printFreqSummary("CPU Frequency Test (No Effective Frequency Support)", package, self.workloadFreq)
+ freqTable = self.workloadFreq
+ self.printFreqSummary("CPU Frequency Test (No Effective Frequency Support)", package, freqTable)
if "ondemand" in self.workloadTime:
@@ -953,7 +960,7 @@
if workloadTime:
sys.stdout.write("cpu %-3s " % cpu)
sys.stdout.write(" %.2f" % self.speedup(cpu, workload))
- sys.stdout.write((" (%4uMHz, %.2fs) " % (self.getWorkloadFreq(self.workloadEffectiveFreq, workload, cpu) ,workloadTime)[:10]))
+ sys.stdout.write((" (%4uMHz, %.2fs) " % (self.getWorkloadFreq(freqTable, workload, cpu) ,workloadTime)[:10]))
print ""
print ""
12 years, 7 months
r1107 - trunk/tests/info
by gnichols@fedoraproject.org
Author: gnichols
Date: 2011-10-04 15:46:37 +0000 (Tue, 04 Oct 2011)
New Revision: 1107
Modified:
trunk/tests/info/info.py
Log:
734985 - info: TypeError: coercing to Unicode: need string or buffer, NoneType found
Modified: trunk/tests/info/info.py
===================================================================
--- trunk/tests/info/info.py 2011-10-04 15:39:28 UTC (rev 1106)
+++ trunk/tests/info/info.py 2011-10-04 15:46:37 UTC (rev 1107)
@@ -285,6 +285,10 @@
symbols = list()
moduleFile = self.getModuleFile(module)
+ if not moduleFile:
+ print "Error: Can not find module file for %s" % module
+ return None
+ # otherwise
if not os.path.isfile(moduleFile):
print "Error: Cannot read module file %s" % moduleFile
return None
12 years, 7 months
r1106 - trunk/tests/info
by gnichols@fedoraproject.org
Author: gnichols
Date: 2011-10-04 15:39:28 +0000 (Tue, 04 Oct 2011)
New Revision: 1106
Modified:
trunk/tests/info/info.py
Log:
734476 - RHEL6.1 32bit/64bit V7 cert info test fail - tech preview
Modified: trunk/tests/info/info.py
===================================================================
--- trunk/tests/info/info.py 2011-10-04 14:46:17 UTC (rev 1105)
+++ trunk/tests/info/info.py 2011-10-04 15:39:28 UTC (rev 1106)
@@ -33,6 +33,8 @@
self.priority = 1000 # run last
+ self.techPreviewModuleWhitelist = ["fscache"]
+
def tags(self):
return [TestTag.noninteractive, TestTag.certification]
@@ -56,25 +58,34 @@
taintedFile = open("/proc/sys/kernel/tainted", "r")
tainted = int(taintedFile.readline())
if tainted != 0:
- if tainted != Constants.TAINT_UNSIGNED_MODULE:
- # fail for taints other than unsigned modules; modules will be checked later
- print "Error: kernel is tainted (value = %u)" % tainted
- success = False
- else:
+ # only tainted via unsigned modules - just a warning
+ if tainted == Constants.TAINT_UNSIGNED_MODULE:
print "Warning: kernel is tainted (value = %u)" % tainted
-
+
if tainted & Constants.TAINT_PROPRIETARY_MODULE:
- print "Please remove the non-GPL modules."
+ print "Error: Please remove the non-GPL modules."
+ success = False
+
if tainted & Constants.TAINT_TECHPREVIEW_MODULE:
modules = Command("cat /proc/modules").getStringList(regex = "^[\s\S]+\(T\)")
- print "Tech-preview modules:"
+ badModules = list()
for module in modules:
- print module
+ if not module in self.techPreviewModuleWhitelist:
+ badModules.append(module)
+ if badModules:
+ print "Error: Tech-preview modules not in whitelist:" % tainted
+ success = False
+ for module in badModules:
+ print module
+
if tainted & Constants.TAINT_UNSIGNED_MODULE:
modules = Command("cat /proc/modules").getStringList(regex = "^[\s\S]+\(U\)")
print "Unsigned modules:"
for module in modules:
print module
+
+ if not success:
+ print "Error: kernel is tainted (value = %u)" % tainted
taintedFile.close()
except:
12 years, 7 months
r1105 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2011-10-04 14:46:17 +0000 (Tue, 04 Oct 2011)
New Revision: 1105
Modified:
trunk/Makefile
Log:
R31
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2011-09-23 14:48:20 UTC (rev 1104)
+++ trunk/Makefile 2011-10-04 14:46:17 UTC (rev 1105)
@@ -14,7 +14,7 @@
# Author: Greg Nichols
V7_VERSION := 1.4
-V7_RELEASE := 30
+V7_RELEASE := 31
V7_VERSION_RELEASE := $(V7_VERSION)-$(V7_RELEASE)
V7_VERSION_PY := v7/version.py
V7_SVN_MODULE := svn+ssh://svn.fedorahosted.org/svn/v7
12 years, 7 months