r642 - trunk/tests/info
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-08-18 15:38:56 +0000 (Wed, 18 Aug 2010)
New Revision: 642
Modified:
trunk/tests/info/info.py
Log:
512153 - [RHEL5.3 GA] Hardware Certification Test failed with Error: kernel is tainted (value = 64)
Modified: trunk/tests/info/info.py
===================================================================
--- trunk/tests/info/info.py 2010-08-18 15:32:53 UTC (rev 641)
+++ trunk/tests/info/info.py 2010-08-18 15:38:56 UTC (rev 642)
@@ -156,21 +156,17 @@
if not line:
break
module = line.split()[0]
+ moduleFile = self.getModuleFile(module)
# check that modules come from the kernel RPM.
- found = False
- if self.getModuleFile(module) in kernelRPMModuleList:
- found = True
- break
- # module is NOT from the kernel RPM.
- if not found:
+ if not moduleFile in kernelRPMModuleList:
# RHEL4 does not include kmod
if "Red Hat" in self.redHatRelease.getProduct() and self.redHatRelease.getVersion() == 4:
print "Error: Non-Red Hat kernel module %s" % module
success = False
# RH kmods are allowed
- elif self.checkModuleVenderAndBuildHost(module) and Command("rpm -Vf %s" % moduleFileName):
- print "kmod package: %s" % Command("rpm -qf %s" % moduleFileName).getString()
+ elif self.checkModuleVenderAndBuildHost(module) and Command("rpm -Vf %s" % moduleFile):
+ print "kmod package: %s" % Command("rpm -qf %s" % moduleFile).getString()
# Check non-RH modules ABI; but still fail
else:
self.abiCheck(module)
@@ -185,7 +181,7 @@
try:
moduleFile = self.getModuleFile(module)
- vendor = Command("rpm -qf %s --qf %%{BUILDHOST}" % moduleFile).getString()
+ vendor = Command("rpm -qf %s --qf %%{VENDOR}" % moduleFile).getString()
if vendor in goodVendorList:
pass
elif vendor in warnVendorList:
@@ -273,7 +269,10 @@
modInfoSrcVersion = Command("modinfo -F srcversion %s" % module).getString()
sysSrcVersion = open("/sys/module/%s/srcversion" % module).readline().strip()
if sysSrcVersion == modInfoSrcVersion:
- return Command("modinfo -F filename %s" % module).getString()
+ moduleFile =Command("modinfo -F filename %s" % module).getString()
+ if os.path.islink(moduleFile):
+ moduleFile = os.readlink(moduleFile)
+ return moduleFile
return None
13 years, 9 months
r641 - trunk/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-08-18 15:32:53 +0000 (Wed, 18 Aug 2010)
New Revision: 641
Modified:
trunk/v7/fvtest.py
trunk/v7/tags.py
Log:
616949 - FV_Network, FV_Memory, FV_Storage, and FV_Core need to remove from x86 test kits
Modified: trunk/v7/fvtest.py
===================================================================
--- trunk/v7/fvtest.py 2010-08-18 15:31:06 UTC (rev 640)
+++ trunk/v7/fvtest.py 2010-08-18 15:32:53 UTC (rev 641)
@@ -155,8 +155,19 @@
def plan(self, devices):
tests = list()
- if self.redHatRelease.getVersion() >= 5 and self.redHatRelease.getKernelFlavor() != Constants.rt:
- if self.__isHVMCapableViaLibvirt() or self.__isHVMInCapabilitiesFile() or self.__hasVirtualizationCPUFlags():
+ osSupport = False
+ # if Red Hat and not RT kernel
+ if "Red Hat" in self.redHatRelease.getProduct() and self.redHatRelease.getKernelFlavor() != Constants.rt:
+ # if RHEL5 and i386 or x86_64, or RHEL6+ and x86_64
+ if ((self.redHatRelease.getVersion() is 5 and self.redHatRelease.getArch() in [Constants.i386, Constants.x86_64])
+ or (self.redHatRelease.getVersion >= 6 and self.redHatRelease.getArch() == Constants.x86_64)):
+ osSupport = True
+ # Fedora x86_64
+ elif "Fedora" in self.redHatRelease.getProduct() and self.redHatRelease.getArch() == Constants.x86_64:
+ osSupport = True
+
+ # check libvirt, capabilities file, or cpuflags
+ if osSupport and (self.__isHVMCapableViaLibvirt() or self.__isHVMInCapabilitiesFile() or self.__hasVirtualizationCPUFlags()):
test = self.makeCopy()
tests.append(test)
return tests
Modified: trunk/v7/tags.py
===================================================================
--- trunk/v7/tags.py 2010-08-18 15:31:06 UTC (rev 640)
+++ trunk/v7/tags.py 2010-08-18 15:32:53 UTC (rev 641)
@@ -160,6 +160,8 @@
rt="rt"
TAINT_PROPRIETARY_MODULE = 1
TAINT_UNSIGNED_MODULE = 64 #kernel.h calls this TAINT_USER?
+ i386="i386"
+ x86_64="x86_64"
class SystemFunction:
13 years, 9 months
r640 - trunk/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-08-18 15:31:06 +0000 (Wed, 18 Aug 2010)
New Revision: 640
Modified:
trunk/v7/test.py
Log:
619252 - CPUSCALING test to show the current CPU frequency before calculating PI
Modified: trunk/v7/test.py
===================================================================
--- trunk/v7/test.py 2010-08-18 15:30:13 UTC (rev 639)
+++ trunk/v7/test.py 2010-08-18 15:31:06 UTC (rev 640)
@@ -446,7 +446,7 @@
params = line.strip().split()
loadAvg = float(params[0])
print "Current load average: %s" % loadAvg
- sys.stdout.flush
+ sys.stdout.flush()
return loadAvg
else:
return 0
@@ -454,6 +454,8 @@
def syncDisks(self):
try:
+ print "Syncing disks"
+ sys.stdout.flush()
command = Command("/bin/sync")
command.echo()
except V7CommandException, e:
@@ -464,11 +466,14 @@
def waitForLull(self):
waitTime = 5
retryLimit = 20
-
self.syncDisks()
+ print "Waiting for low load..."
+ sys.stdout.flush()
retryCount = 0
while self.getLoadAvg() > 1 and retryCount < retryLimit:
time.sleep(waitTime)
retryCount = retryCount + 1
+ print "Done waiting"
+ sys.stdout.flush()
13 years, 9 months
r639 - trunk/tests/cpuscaling
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-08-18 15:30:13 +0000 (Wed, 18 Aug 2010)
New Revision: 639
Modified:
trunk/tests/cpuscaling/cpuscaling.py
Log:
619252 - CPUSCALING test to show the current CPU frequency before calculating PI
Modified: trunk/tests/cpuscaling/cpuscaling.py
===================================================================
--- trunk/tests/cpuscaling/cpuscaling.py 2010-08-18 13:41:40 UTC (rev 638)
+++ trunk/tests/cpuscaling/cpuscaling.py 2010-08-18 15:30:13 UTC (rev 639)
@@ -201,6 +201,7 @@
def _runLoadTest(self):
print "Running CPU load test..."
+ sys.stdout.flush()
try:
Command("taskset -pc %s %s" % (self.getLogicalDeviceName(), os.getpid())).echo()
except V7CommandException, exception:
@@ -233,6 +234,8 @@
def runLoadTest(self):
result = self._runLoadTest()
+ print "CPU Load finished."
+ sys.stdout.flush()
if self.getMode() == Constants.self:
print "Warning: in self-test mode, returning face data"
result = self.selfTestData[self.selfTestStep]
@@ -323,6 +326,7 @@
return False
self.getCPUFlags()
+ sys.stdout.flush()
return True
@@ -341,6 +345,7 @@
print ""
print "On Userspace Governor Test:"
print "-------------------------------------------------"
+ sys.stdout.flush()
# 5. Set the govr.(*) to "userspace" for each cpu via a command similar to:
# 6. Verify the govr. setting took by checking ~/scaling_governor
self.differenceSpeedUp = None
@@ -355,9 +360,11 @@
# 7. Set the the cpu speed to it's lowest value
frequency = self.frequencies[0]
- print "Setting cpu frequency to %u MHz" % (frequency/1000)
+ currentFrequency = self.getParameter("scaling_cur_freq")
+ print "Changing cpu frequency from %u to %u MHz" % (int(currentFrequency)/1000, (frequency/1000))
if not self.setFrequency("%u" % frequency):
success = False
+ sys.stdout.flush()
# 8. Verify the speed is set to the lowest value by comparing ~/scaling_min_freq to ~/scaling_cur_freq
minimumFrequency = self.getParameter("scaling_min_freq")
@@ -376,7 +383,8 @@
# 11. Set the cpu speed to it's highest value as above.
frequency = self.frequencies[-1]
- print "Setting cpu frequency to %u MHz" % (frequency/1000)
+ currentFrequency = self.getParameter("scaling_cur_freq")
+ print "Changing cpu frequency from %u to %u MHz" % (int(currentFrequency)/1000, (frequency/1000))
if not self.setFrequency("%u" % frequency):
success = False
@@ -442,10 +450,14 @@
print "On Demand load test time: %.2f" % self.onDemandTestTime
# 18. Compare the timing to the max results from earlier, again time should be within self.speedUpTolerance
- self.differenceOnDemandVsMaximum = (abs(self.onDemandTestTime-self.maximumFrequencyTestTime)/self.maximumFrequencyTestTime)*100
- print "Percentage Difference vs. maximum frequency: %.1f%%" % self.differenceOnDemandVsMaximum
- if self.differenceOnDemandVsMaximum > self.speedUpTolerance:
- print "Error: on demand performance vs maximum of %.1f%% is not within %.1f%% margin" % (self.differenceOnDemandVsMaximum, self.speedUpTolerance)
+ if self.maximumFrequencyTestTime:
+ self.differenceOnDemandVsMaximum = (abs(self.onDemandTestTime-self.maximumFrequencyTestTime)/self.maximumFrequencyTestTime)*100
+ print "Percentage Difference vs. maximum frequency: %.1f%%" % self.differenceOnDemandVsMaximum
+ if self.differenceOnDemandVsMaximum > self.speedUpTolerance:
+ print "Error: on demand performance vs maximum of %.1f%% is not within %.1f%% margin" % (self.differenceOnDemandVsMaximum, self.speedUpTolerance)
+ success = False
+ else:
+ print "No maximum frequency test data to compare"
success = False
# 19. Verify the current speed has returned to the lowest speed as before
13 years, 9 months
r638 - trunk/tests/info
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-08-18 13:41:40 +0000 (Wed, 18 Aug 2010)
New Revision: 638
Modified:
trunk/tests/info/info.py
Log:
620672 - test suite should check for SELinux status
Modified: trunk/tests/info/info.py
===================================================================
--- trunk/tests/info/info.py 2010-08-18 13:38:25 UTC (rev 637)
+++ trunk/tests/info/info.py 2010-08-18 13:41:40 UTC (rev 638)
@@ -43,6 +43,7 @@
rpms = [self.redHatRelease.getKernelDevelRPMName()]
else:
rpms = ["kabi-whitelists"]
+ rpms.append("policycoreutils")
return rpms
def checkKernel(self):
@@ -89,6 +90,18 @@
success = False
return success
+
+ def checkSELinux(self):
+ success = True
+ try:
+ selinuxParams = Command("/usr/sbin/sestatus").echo()
+ except V7CommandException, exception:
+ print "Error: could not determine selinux parameters"
+ print exception
+ success = False
+
+ return success
+
def checkV7(self):
rpmVerify = Command("rpm -V --nomtime --nomode --nocontexts v7")
@@ -375,14 +388,17 @@
def run(self):
success = True
- if not self.runSubTest(self.checkKernel, name="Kernel", description="Check OS kernel build, version"):
+ if not self.runSubTest(self.checkV7, name="Verify v7", description="Verify the v7 installation"):
success = False
- if not self.runSubTest(self.checkV7, name="Verify v7", description="Verify the v7 installation"):
+ if not self.runSubTest(self.checkKernel, name="Kernel", description="Check OS kernel build, version"):
success = False
if not self.runSubTest(self.checkModules, name="Modules", description="Check kernel modules"):
success = False
+
+ if not self.runSubTest(self.checkSELinux, name="SE Linux", description="Capture SE Linux status"):
+ success = False
if not self.runSubTest(self.generateSystemReport, name="System Report", description="generate system report"):
success = False
13 years, 9 months
r637 - trunk/tests/memory
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-08-18 13:38:25 +0000 (Wed, 18 Aug 2010)
New Revision: 637
Modified:
trunk/tests/memory/memory.py
Log:
621364 - Memory test failed on RH6 certification
Modified: trunk/tests/memory/memory.py
===================================================================
--- trunk/tests/memory/memory.py 2010-08-18 13:34:55 UTC (rev 636)
+++ trunk/tests/memory/memory.py 2010-08-18 13:38:25 UTC (rev 637)
@@ -131,6 +131,10 @@
# if not swap-less, nfs root, add a process to hit swap
if not (self.isNFSRootSystem and self.swapMemory == 0):
numberOfProcesses += 1
+ # check for zero swap
+ if self.swapMemory is 0:
+ print "Error: this test requires non-zero swap memory."
+ return False
# check to make sure there's enough swap
requiredMemory = self.processMemory*numberOfProcesses
if requiredMemory > self.systemMemory + self.swapMemory:
@@ -158,6 +162,11 @@
# run a test that will swap, except for nfs root systems without swap
if not (self.isNFSRootSystem and self.swapMemory == 0):
+ # check for zero swap
+ if self.swapMemory is 0:
+ print "Error: this test requires non-zero swap memory."
+ return False
+
# is there enough swap memory for the test?
if memory > self.systemMemory + self.swapMemory:
print "Error: this test requires a minimum of %u KB of swap memory (%u configured)" % (memory-self.systemMemory, self.swapMemory)
13 years, 9 months
r636 - trunk/tests/cpuscaling
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-08-18 13:34:55 +0000 (Wed, 18 Aug 2010)
New Revision: 636
Modified:
trunk/tests/cpuscaling/cpuscaling.py
Log:
624141 - cpuscaling test fails if available frequencies are listed lowest to highest
Modified: trunk/tests/cpuscaling/cpuscaling.py
===================================================================
--- trunk/tests/cpuscaling/cpuscaling.py 2010-08-18 13:32:33 UTC (rev 635)
+++ trunk/tests/cpuscaling/cpuscaling.py 2010-08-18 13:34:55 UTC (rev 636)
@@ -277,21 +277,24 @@
# 1. Determine if the cpu's support scaling using presense or lack there of ~/cpufreq in sysfs
if not self.getCPUFreqDirectories():
- return False
+ return False
if len (self.cpufreqDirectories) > 1:
print "System has %u cpus"% len(self.cpufreqDirectories)
# 2. Check ~/cpu[*]/scaling_available_freq files to ensure that all cpu's scale the same ammount; if not bail
freqFileName = "scaling_available_frequencies"
- self.frequencies = self.checkParameters(freqFileName)
- if not self.frequencies:
+ frequencies = self.checkParameters(freqFileName)
+ if not frequencies:
return False
+ # sort them as integers
+ self.frequencies = map(string.atoi, frequencies)
+ self.frequencies.sort()
+
print ""
print "Supported CPU Frequencies: "
for freq in self.frequencies:
- f = string.atoi(freq)/1000
- print " %u MHz" % f
+ print " %u MHz" % (freq/1000)
print ""
# 3. Check ~/cpu[*]/scaling_available_governors files to verify all cpu's support the same control methods
@@ -351,9 +354,9 @@
success = False
# 7. Set the the cpu speed to it's lowest value
- frequency = self.frequencies[-1]
- print "Setting cpu frequency to %u MHz" % (string.atoi(frequency)/1000)
- if not self.setFrequency(frequency):
+ frequency = self.frequencies[0]
+ print "Setting cpu frequency to %u MHz" % (frequency/1000)
+ if not self.setFrequency("%u" % frequency):
success = False
# 8. Verify the speed is set to the lowest value by comparing ~/scaling_min_freq to ~/scaling_cur_freq
@@ -372,9 +375,9 @@
print "Minumum frequency load test time: %.2f" % self.minimumFrequencyTestTime
# 11. Set the cpu speed to it's highest value as above.
- frequency = self.frequencies[0]
- print "Setting cpu frequency to %u MHz" % (string.atoi(frequency)/1000)
- if not self.setFrequency(frequency):
+ frequency = self.frequencies[-1]
+ print "Setting cpu frequency to %u MHz" % (frequency/1000)
+ if not self.setFrequency("%u" % frequency):
success = False
maximumFrequency = self.getParameter("scaling_max_freq")
13 years, 9 months
r635 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-08-18 13:32:33 +0000 (Wed, 18 Aug 2010)
New Revision: 635
Modified:
trunk/Makefile
Log:
R17
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2010-08-12 16:11:33 UTC (rev 634)
+++ trunk/Makefile 2010-08-18 13:32:33 UTC (rev 635)
@@ -14,7 +14,7 @@
# Author: Greg Nichols
V7_VERSION := 1.2
-V7_RELEASE := 16
+V7_RELEASE := 17
V7_VERSION_RELEASE := $(V7_VERSION)-$(V7_RELEASE)
V7_VERSION_PY := v7/version.py
V7_SVN_MODULE := svn+ssh://svn.fedorahosted.org/svn/v7
13 years, 9 months
r634 - in tags: . v7-V1-2R16/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-08-12 16:11:33 +0000 (Thu, 12 Aug 2010)
New Revision: 634
Added:
tags/v7-V1-2R16/
tags/v7-V1-2R16/v7/version.py
Log:
tag version
Copied: tags/v7-V1-2R16 (from rev 633, trunk)
Copied: tags/v7-V1-2R16/v7/version.py (from rev 335, trunk/v7/version.py)
===================================================================
--- tags/v7-V1-2R16/v7/version.py (rev 0)
+++ tags/v7-V1-2R16/v7/version.py 2010-08-12 16:11:33 UTC (rev 634)
@@ -0,0 +1,5 @@
+
+# v7/version.py is automatically-generated - DO NOT EDIT
+version = '1.2'
+release = '16'
+rhel_version = '5'
13 years, 9 months
r633 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-08-12 16:10:57 +0000 (Thu, 12 Aug 2010)
New Revision: 633
Modified:
trunk/v7.spec.in
Log:
changelog
Modified: trunk/v7.spec.in
===================================================================
--- trunk/v7.spec.in 2010-08-12 16:00:49 UTC (rev 632)
+++ trunk/v7.spec.in 2010-08-12 16:10:57 UTC (rev 633)
@@ -69,6 +69,15 @@
/etc/init.d/v7
%changelog
+* Thu Aug 12 2010 Greg Nichols <gnichols(a)redhat.com>
+
+V7 1.2 R16
+
+ 581463 - memory test hangs on larger scale systems
+ 608535 - rhel6 audio test failed - sound-sample.wav: No such file or directory
+ 621041 - core test failed on s390x RHEL6 - sched_setaffinity: Invalid argument
+ 619712 - V7 plan traceback in cpuscaling for s390x RHEL6 and ppc64 RHEL6
+
* Tue Aug 03 2010 Greg Nichols <gnichols(a)redhat.com>
V7 1.2 R15
@@ -84,7 +93,6 @@
V7 1.2 R14
- 619712 - V7 plan traceback in cpuscaling for s390x RHEL6 and ppc64 RHEL6
619773 - reboot test fails - Continuation instance has no attribute 'systemLogBootMarker'
* Thu Jul 29 2010 Greg Nichols <gnichols(a)redhat.com>
13 years, 9 months