From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O93tW-0004Yl-MS for garchives@archives.gentoo.org; Mon, 03 May 2010 22:13:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AB25E0D0C; Mon, 3 May 2010 22:13:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 30CE4E0D0C for ; Mon, 3 May 2010 22:13:41 +0000 (UTC) Received: from corvid.gentoo.org (corvid.gentoo.org [208.92.234.79]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id BF55B1B4011 for ; Mon, 3 May 2010 22:13:40 +0000 (UTC) Received: by corvid.gentoo.org (Postfix, from userid 544) id 34EBE2C3A4; Mon, 3 May 2010 22:13:39 +0000 (UTC) From: "Robin H. Johnson (robbat2)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, robbat2@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: db.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: db.eclass X-VCS-Directories: eclass X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson Content-Type: text/plain; charset=utf8 Message-Id: <20100503221339.34EBE2C3A4@corvid.gentoo.org> Date: Mon, 3 May 2010 22:13:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6a5b4873-fe93-4ced-83c0-c297327d42c5 X-Archives-Hash: dcdd1c2d9bcd2ea884040a6c0add007a robbat2 10/05/03 22:13:39 Modified: db.eclass Log: Bug #253312: implement parallel tests for sys-libs/db. Revision Changes Path 1.33 eclass/db.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?r= ev=3D1.33&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?r= ev=3D1.33&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?r= 1=3D1.32&r2=3D1.33 Index: db.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/db.eclass,v retrieving revision 1.32 retrieving revision 1.33 diff -p -w -b -B -u -u -r1.32 -r1.33 --- db.eclass 3 May 2010 22:03:38 -0000 1.32 +++ db.eclass 3 May 2010 22:13:39 -0000 1.33 @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.32 2010/05/03 22= :03:38 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.33 2010/05/03 22= :13:39 robbat2 Exp $ # This is a common location for functions used in the sys-libs/db ebuild= s # # Bugs: pauldv@gentoo.org @@ -124,11 +124,23 @@ db_src_test() { if useq tcl; then einfo "Running sys-libs/db testsuite" ewarn "This can take 6+ hours on modern machines" - cd ${S} + # Fix stuff that fails with relative paths + sed -ri \ + -e '/regsub {test_path }/s,regsub,#regsub,g' \ + -e '/regsub {src_root }/s,regsub,#regsub,g' \ + "${S}"/test/parallel.tcl + cd "${S}" echo 'source ../test/test.tcl' >testrunner.tcl + testJobs=3D`echo "${MAKEOPTS}" | \ + sed -e "s/.*-j\([0-9]\+\).*/\1/"` + if [[ ${testJobs} =3D~ [[:digit:]]+ ]]; then + echo "run_parallel ${testJobs} run_std" >> testrunner.tcl + else=20 echo 'run_std' >>testrunner.tcl + fi + tclsh testrunner.tcl - egrep -qs '^FAIL' ALL.OUT && die "Some tests failed, please see ${S}/A= LL.OUT" + egrep -qs '^FAIL' ALL.OUT* && die "Some tests failed, please see ${S}/= ALL.OUT*" else eerror "You must have USE=3Dtcl to run the sys-libs/db testsuite." fi