Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: db.eclass
Date: Tue, 11 May 2010 08:00:24
Message-Id: 20100511080020.E07032C4F8@corvid.gentoo.org
1 robbat2 10/05/11 08:00:20
2
3 Modified: db.eclass
4 Log:
5 sys-libs/db-5 has changed some of the test scripts slightly, so we need to look a little wider for parallel.tcl. Also improve the regex we run on it for relative directories.
6
7 Revision Changes Path
8 1.38 eclass/db.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/db.eclass?rev=1.38&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/db.eclass?rev=1.38&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/db.eclass?r1=1.37&r2=1.38
13
14 Index: db.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/db.eclass,v
17 retrieving revision 1.37
18 retrieving revision 1.38
19 diff -p -w -b -B -u -u -r1.37 -r1.38
20 --- db.eclass 11 May 2010 07:58:43 -0000 1.37
21 +++ db.eclass 11 May 2010 08:00:20 -0000 1.38
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.37 2010/05/11 07:58:43 robbat2 Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.38 2010/05/11 08:00:20 robbat2 Exp $
27 # This is a common location for functions used in the sys-libs/db ebuilds
28 #
29 # Bugs: pauldv@g.o
30 @@ -147,10 +147,17 @@ db_src_test() {
31 einfo "Running sys-libs/db testsuite"
32 ewarn "This can take 6+ hours on modern machines"
33 # Fix stuff that fails with relative paths
34 + local test_parallel=''
35 + for t in \
36 + "${S}"/test/parallel.tcl \
37 + "${S}"/../test/parallel.tcl ; do
38 + [[ -f "${t}" ]] && test_parallel="${t}" && break
39 + done
40 +
41 sed -ri \
42 - -e '/regsub {test_path }/s,regsub,#regsub,g' \
43 - -e '/regsub {src_root }/s,regsub,#regsub,g' \
44 - "${S}"/test/parallel.tcl
45 + -e '/regsub .test_path ./s,(regsub),#\1,g' \
46 + -e '/regsub .src_root ./s,(regsub),#\1,g' \
47 + "${test_parallel}"
48 cd "${S}"
49 echo 'source ../test/test.tcl' > testrunner.tcl
50 testJobs=`echo "${MAKEOPTS}" | \