r452 - in trunk/tools: . bin
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-03-11 14:11:52 +0000 (Thu, 11 Mar 2010)
New Revision: 452
Added:
trunk/tools/bin/
trunk/tools/bin/Makefile
trunk/tools/bin/v7-mount-data-image
Log:
tools installation
Added: trunk/tools/bin/Makefile
===================================================================
--- trunk/tools/bin/Makefile (rev 0)
+++ trunk/tools/bin/Makefile 2010-03-11 14:11:52 UTC (rev 452)
@@ -0,0 +1,26 @@
+# Copyright (c) 2006 Red Hat, Inc. All rights reserved. This copyrighted material
+# is made available to anyone wishing to use, modify, copy, or
+# redistribute it subject to the terms and conditions of the GNU General
+# Public License v.2.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author: Greg Nichols
+
+HERE=$(shell pwd)
+
+.PHONY: clean install
+
+SUBDIRS := tools rhts
+
+FILES := v7-mount-data-image
+
+all install:
+ mkdir -p $(DESTDIR)/usr/bin
+ for file in $(FILES); do install -m 755 $$file $(DESTDIR)/usr/bin; done
Added: trunk/tools/bin/v7-mount-data-image
===================================================================
--- trunk/tools/bin/v7-mount-data-image (rev 0)
+++ trunk/tools/bin/v7-mount-data-image 2010-03-11 14:11:52 UTC (rev 452)
@@ -0,0 +1,57 @@
+#!/usr/bin/python
+# Copyright (c) 2006 Red Hat, Inc. All rights reserved. This copyrighted material
+# is made available to anyone wishing to use, modify, copy, or
+# redistribute it subject to the terms and conditions of the GNU General
+# Public License v.2.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author: Greg Nichols
+#
+
+import os,sys
+v7ClassLibraryPath = '/usr/share/v7/lib/'
+sys.path.append(v7ClassLibraryPath)
+os.putenv("PYTHONPATH", v7ClassLibraryPath)
+
+from v7.test import Test
+from v7.hardwaretest import HardwareTestHarness
+from v7.fvtest import FvTest
+from optparse import OptionParser
+
+# i18n!
+from rhpl.translate import _, py_bind_textdomain_codeset
+py_bind_textdomain_codeset("v7","UTF-8")
+
+# bail out if user is not root
+if os.getuid() > 0:
+ sys.stderr.write(_("You need to be root to run this program.\n"))
+ sys.exit(1)
+
+usage = "usage: %prog [options]"
+
+parser = OptionParser(usage)
+
+parser.add_option("-m", "--mount",
+ action="store_true", dest="mount", default=True,
+ help="Mount the data image")
+parser.add_option("-u", "--unmount",
+ action="store_true", dest="unmount", default=False,
+ help="unmount the data image")
+
+(options,args) = parser.parse_args()
+
+fvTest = FvTest("fv_generic")
+if options.unmount:
+ fvTest.unmountDataImage()
+else:
+ fvTest.mountDataImage()
+
+
+
Property changes on: trunk/tools/bin/v7-mount-data-image
___________________________________________________________________
Name: svn:executable
+ *
14 years, 2 months
r451 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-03-11 14:10:51 +0000 (Thu, 11 Mar 2010)
New Revision: 451
Modified:
trunk/Makefile
Log:
R18
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2010-03-10 17:41:23 UTC (rev 450)
+++ trunk/Makefile 2010-03-11 14:10:51 UTC (rev 451)
@@ -14,7 +14,7 @@
# Author: Greg Nichols
V7_VERSION := 1.1
-V7_RELEASE := 17
+V7_RELEASE := 18
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, 2 months
r450 - in tags: . v7-V1-1R17/v7
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-03-10 17:41:23 +0000 (Wed, 10 Mar 2010)
New Revision: 450
Added:
tags/v7-V1-1R17/
tags/v7-V1-1R17/v7/version.py
Log:
tag version
Copied: tags/v7-V1-1R17 (from rev 449, trunk)
Copied: tags/v7-V1-1R17/v7/version.py (from rev 335, trunk/v7/version.py)
===================================================================
--- tags/v7-V1-1R17/v7/version.py (rev 0)
+++ tags/v7-V1-1R17/v7/version.py 2010-03-10 17:41:23 UTC (rev 450)
@@ -0,0 +1,5 @@
+
+# v7/version.py is automatically-generated - DO NOT EDIT
+version = '1.1'
+release = '17'
+rhel_version = '5'
14 years, 2 months
r449 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-03-10 17:40:31 +0000 (Wed, 10 Mar 2010)
New Revision: 449
Modified:
trunk/v7.spec.in
Log:
changlog
Modified: trunk/v7.spec.in
===================================================================
--- trunk/v7.spec.in 2010-03-10 17:38:37 UTC (rev 448)
+++ trunk/v7.spec.in 2010-03-10 17:40:31 UTC (rev 449)
@@ -68,6 +68,12 @@
/usr/share/man/man8/v7.8.gz
%changelog
+* Wed Mar 10 2010 Greg Nichols <gnichols(a)redhat.com>
+V7 1.1 R17
+
+567378 - Memory test of v7.1.1-7 test kits fail on RH5 Update 4 x86
+572265 - v7 adds 2nd usb and expresscard test if a keyfob is installed
+
* Tue Mar 09 2010 Greg Nichols <gnichols(a)redhat.com>
V7 1.1 R15
14 years, 2 months
r448 - trunk/tests/expresscard
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-03-10 17:38:37 +0000 (Wed, 10 Mar 2010)
New Revision: 448
Modified:
trunk/tests/expresscard/expresscard.py
Log:
572265 - v7 adds 2nd usb and expresscard test if a keyfob is installed
Modified: trunk/tests/expresscard/expresscard.py
===================================================================
--- trunk/tests/expresscard/expresscard.py 2010-03-10 17:38:17 UTC (rev 447)
+++ trunk/tests/expresscard/expresscard.py 2010-03-10 17:38:37 UTC (rev 448)
@@ -60,7 +60,6 @@
hasPCIE = True
if hasUSB and hasBattery and hasPCIE and not isXenGuest:
test = self.makeCopy()
- test.setDevice(device)
tests.append(test)
return tests
14 years, 2 months
r447 - trunk/tests/usb
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-03-10 17:38:17 +0000 (Wed, 10 Mar 2010)
New Revision: 447
Modified:
trunk/tests/usb/usb.py
Log:
572265 - v7 adds 2nd usb and expresscard test if a keyfob is installed
Modified: trunk/tests/usb/usb.py
===================================================================
--- trunk/tests/usb/usb.py 2010-03-10 17:36:12 UTC (rev 446)
+++ trunk/tests/usb/usb.py 2010-03-10 17:38:17 UTC (rev 447)
@@ -68,7 +68,6 @@
hasUSB = True
if hasUSB and not isXenGuest:
test = self.makeCopy()
- test.setDevice(device)
tests.append(test)
return tests
14 years, 2 months
r446 - trunk/tests/memory
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-03-10 17:36:12 +0000 (Wed, 10 Mar 2010)
New Revision: 446
Modified:
trunk/tests/memory/memory.py
Log:
567378 - Memory test of v7.1.1-7 test kits fail on RH5 Update 4 x86
Modified: trunk/tests/memory/memory.py
===================================================================
--- trunk/tests/memory/memory.py 2010-03-10 14:17:37 UTC (rev 445)
+++ trunk/tests/memory/memory.py 2010-03-10 17:36:12 UTC (rev 446)
@@ -199,12 +199,12 @@
if line and len(line) > 1:
print "process %u pid %u: %s" % (i, process[i].getPID(), line)
sys.stdout.flush()
- if process[i].poll() == -1:
+ returnValue = process[i].poll()
+ if returnValue is None or returnValue is -1:
waiting = True
else:
- returnValue = process[i].poll()
- if returnValue != 0:
- print "Error: process %u pid %u retuned %u" % (i, process[i].getPID(), returnValue)
+ if returnValue > 0:
+ print "Error: process %u pid %u returned %u" % (i, process[i].getPID(), returnValue)
passed = False
print "process %u pid %u returned success" % (i, process[i].getPID())
process[i] = None
14 years, 2 months
r445 - trunk/tests/network
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-03-10 14:17:37 +0000 (Wed, 10 Mar 2010)
New Revision: 445
Modified:
trunk/tests/network/network.py
Log:
555895 - FEAT: results.xml could divide out the various sub tests.
Modified: trunk/tests/network/network.py
===================================================================
--- trunk/tests/network/network.py 2010-03-10 02:10:27 UTC (rev 444)
+++ trunk/tests/network/network.py 2010-03-10 14:17:37 UTC (rev 445)
@@ -327,10 +327,10 @@
(input, pingPipe) = os.popen4("/bin/ping -f -c 1000 %s %s" % (sizeParam, self.getTestServer()))
returnValue = self.printPipe(pingPipe)
if returnValue:
- return returnValue
+ return False
# otherwise
- return 0
+ return True
def tcpTest(self):
# lat_tcp and bw_tcp report results on stderr, so
14 years, 2 months
r444 - trunk
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-03-10 02:10:27 +0000 (Wed, 10 Mar 2010)
New Revision: 444
Modified:
trunk/Makefile
Log:
R17
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2010-03-09 18:41:17 UTC (rev 443)
+++ trunk/Makefile 2010-03-10 02:10:27 UTC (rev 444)
@@ -14,7 +14,7 @@
# Author: Greg Nichols
V7_VERSION := 1.1
-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
14 years, 2 months
r443 - trunk/tests/network
by gnichols@fedoraproject.org
Author: gnichols
Date: 2010-03-09 18:41:17 +0000 (Tue, 09 Mar 2010)
New Revision: 443
Modified:
trunk/tests/network/network.py
Log:
555895 - FEAT: results.xml could divide out the various sub tests.
Modified: trunk/tests/network/network.py
===================================================================
--- trunk/tests/network/network.py 2010-03-09 18:39:01 UTC (rev 442)
+++ trunk/tests/network/network.py 2010-03-09 18:41:17 UTC (rev 443)
@@ -348,7 +348,7 @@
if exception.command.returnValue != 0 or len(exception.command.errors) is 0:
print "Error: tcp latency test failed"
print exception
- return FAILED
+ return False
else:
print exception.command.errors[0]
try:
@@ -366,13 +366,11 @@
if len(bw_tcp.errors) > 0:
print "bw_tcp errors: %s" % bw_tcp.errors[0]
print exception
- return FAILED
+ return False
# otherwise - print the output
print bw_tcp.errors[0]
-
- print "PASSED"
- return PASSED
+ return True
def startServer(self):
@@ -452,13 +450,12 @@
if "failed" in exception.message:
print "Error: udp latency test failed"
print exception
- return 1
+ return False
else:
print exception.command.errors
#otherwise
- print "passed"
- return 0
+ return True
@@ -471,7 +468,7 @@
except V7CommandException, e:
print "Error: could not make temporary directory %s" % nfsdir
print e
- return FAILED
+ return False
files=10
# TODO: in RHEL5 beta2 release notes, it says "The mount and umount
# commands no longer directly support NFS; there no longer is a
@@ -496,7 +493,7 @@
except V7CommandException, e:
print "Error: Mount command FAILED"
print e
- return FAILED
+ return False
self.setSignalHandler(self.nfsSignalHandler)
try:
@@ -523,7 +520,7 @@
except V7CommandException, e:
print "Error: NFS Write test failed"
print e
- return FAILED
+ return False
# read test: copy data from remote machine (and compare it to original)
try:
@@ -531,7 +528,7 @@
except V7CommandException, e:
print "Error: Mount command FAILED"
print e
- return FAILED
+ return False
self.setSignalHandler(self.nfsSignalHandler)
@@ -554,10 +551,10 @@
except V7CommandException, e:
print "Error: NFS Read Test Failed"
print e
- return FAILED
+ return False
print "%u mbit received in %u sec ( %.2f mbit/s)" % (mbit, rxtime, mbit/rxtime)
- return PASSED # success
+ return True # success
def printInfo(self):
# YK: grab NIC info and running status
14 years, 2 months