1 |
robbat2 10/05/03 22:13:39 |
2 |
|
3 |
Modified: db.eclass |
4 |
Log: |
5 |
Bug #253312: implement parallel tests for sys-libs/db. |
6 |
|
7 |
Revision Changes Path |
8 |
1.33 eclass/db.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?rev=1.33&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?rev=1.33&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/db.eclass?r1=1.32&r2=1.33 |
13 |
|
14 |
Index: db.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/db.eclass,v |
17 |
retrieving revision 1.32 |
18 |
retrieving revision 1.33 |
19 |
diff -p -w -b -B -u -u -r1.32 -r1.33 |
20 |
--- db.eclass 3 May 2010 22:03:38 -0000 1.32 |
21 |
+++ db.eclass 3 May 2010 22:13:39 -0000 1.33 |
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.32 2010/05/03 22:03:38 robbat2 Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.33 2010/05/03 22:13:39 robbat2 Exp $ |
27 |
# This is a common location for functions used in the sys-libs/db ebuilds |
28 |
# |
29 |
# Bugs: pauldv@g.o |
30 |
@@ -124,11 +124,23 @@ db_src_test() { |
31 |
if useq tcl; then |
32 |
einfo "Running sys-libs/db testsuite" |
33 |
ewarn "This can take 6+ hours on modern machines" |
34 |
- cd ${S} |
35 |
+ # Fix stuff that fails with relative paths |
36 |
+ sed -ri \ |
37 |
+ -e '/regsub {test_path }/s,regsub,#regsub,g' \ |
38 |
+ -e '/regsub {src_root }/s,regsub,#regsub,g' \ |
39 |
+ "${S}"/test/parallel.tcl |
40 |
+ cd "${S}" |
41 |
echo 'source ../test/test.tcl' >testrunner.tcl |
42 |
+ testJobs=`echo "${MAKEOPTS}" | \ |
43 |
+ sed -e "s/.*-j\([0-9]\+\).*/\1/"` |
44 |
+ if [[ ${testJobs} =~ [[:digit:]]+ ]]; then |
45 |
+ echo "run_parallel ${testJobs} run_std" >> testrunner.tcl |
46 |
+ else |
47 |
echo 'run_std' >>testrunner.tcl |
48 |
+ fi |
49 |
+ |
50 |
tclsh testrunner.tcl |
51 |
- egrep -qs '^FAIL' ALL.OUT && die "Some tests failed, please see ${S}/ALL.OUT" |
52 |
+ egrep -qs '^FAIL' ALL.OUT* && die "Some tests failed, please see ${S}/ALL.OUT*" |
53 |
else |
54 |
eerror "You must have USE=tcl to run the sys-libs/db testsuite." |
55 |
fi |