Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
Subject: gentoo-x86 commit in sys-libs/libhugetlbfs/files: libhugetlbfs-2.6-fixup-testsuite.patch
Date: Wed, 04 Nov 2009 04:08:49 +0000
robbat2     09/11/04 04:08:49

  Added:                libhugetlbfs-2.6-fixup-testsuite.patch
  Log:
  Fully wire up the upstream testsuite.
  (Portage version: 2.2_rc48/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sys-libs/libhugetlbfs/files/libhugetlbfs-2.6-fixup-testsuite.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libhugetlbfs/files/libhugetlbfs-2.6-fixup-testsuite.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libhugetlbfs/files/libhugetlbfs-2.6-fixup-testsuite.patch?rev=1.1&content-type=text/plain

Index: libhugetlbfs-2.6-fixup-testsuite.patch
===================================================================
diff -Nuar --exclude '*.S' --exclude Makefile libhugetlbfs-2.6.orig/tests/run_tests.py libhugetlbfs-2.6/tests/run_tests.py
--- libhugetlbfs-2.6.orig/tests/run_tests.py	2009-08-24 05:56:07.000000000 -0700
+++ libhugetlbfs-2.6/tests/run_tests.py	2009-10-31 00:40:28.520387427 -0700
@@ -56,6 +56,11 @@
     local_env["LD_LIBRARY_PATH"] = "../obj%d:obj%d:%s" \
         % (bits, bits, local_env.get("LD_LIBRARY_PATH", ""))
     local_env["HUGETLB_DEFAULT_PAGE_SIZE"] = repr(pagesize)
+    if isinstance(cmd, types.StringType):
+        cmd = 'obj%d/%s' % (bits, cmd)
+    else:
+        s = 'obj%d/%s' % (bits, cmd[0])
+        cmd = (s,)+(cmd[1:])
 
     p = subprocess.Popen(cmd, env=local_env, stdout=subprocess.PIPE)
     try:
@@ -523,10 +528,11 @@
     elfshare_test("linkshare")
     elflink_and_share_test("linkhuge")
 
-    # elflink_rw tests
-    elflink_rw_test("linkhuge_rw")
-    # elflink_rw sharing tests
-    elflink_rw_and_share_test("linkhuge_rw")
+    if 32 in wordsizes:
+        # elflink_rw tests
+        elflink_rw_test("linkhuge_rw")
+        # elflink_rw sharing tests
+        elflink_rw_and_share_test("linkhuge_rw")
 
     # Accounting bug tests
     # reset free hpages because sharing will have held some
@@ -555,7 +561,7 @@
     """
     Run the set of stress tests.
     """
-    iterations = 10	# Number of iterations for looping tests
+    iterations = 10 # Number of iterations for looping tests
 
     # Don't update NRPAGES every time like above because we want to catch the
     # failures that happen when the kernel doesn't release all of the huge pages
@@ -570,7 +576,7 @@
     (rc, tot_pages) = total_hpages()
     (rc, size) = hpage_size()
     sysctls = setup_shm_sysctl(tot_pages * size)
-    threads = 10	# Number of threads for shm-fork
+    threads = 10     # Number of threads for shm-fork
     # Run shm-fork once using half available hugepages, then once using all
     # This is to catch off-by-ones or races in the kernel allocated that
     # can make allocating all hugepages a problem





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in dev-perl/mogilefs-server/files: mogilefsd-init.d-2.16 mogstored-init.d-2.30 mogilefsd.conf-2.16 mogstored-init.d-2.16 mogilefs-server-2.16-Use-saner-name-in-process-listing.patch mogstored-conf.d-2.16
Next by thread:
gentoo-x86 commit in games-puzzle/freesweep: - New directory
Previous by date:
gentoo-x86 commit in app-mobilephone/obex-data-server: obex-data-server-0.4.4.ebuild ChangeLog
Next by date:
gentoo-x86 commit in sys-libs/libhugetlbfs: ChangeLog libhugetlbfs-2.6.ebuild


Updated Nov 24, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.