Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253312 - sys-libs/db-4* should run tests in parallel
Summary: sys-libs/db-4* should run tests in parallel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-01 00:05 UTC by Nick Fortino
Modified: 2010-05-03 22:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
db.eclass changes (db.eclass.diff,932 bytes, patch)
2009-01-01 00:06 UTC, Nick Fortino
Details | Diff
patch to db-4.6.21 to fix path resolution issues (db-4.6-paralleltest.patch,546 bytes, patch)
2009-01-01 00:09 UTC, Nick Fortino
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Fortino 2009-01-01 00:05:32 UTC
The db package supports running the 6+ hours of tests in parallel through the tclsh command 'run_parallel #proc run_std'. This seems to be the intended way of running these tests, as the status output is much more informative about progress of the tests when run in parallel.

Doing this requires 2 patches:
1. Patch db.eclass to find the number of processes to run in parallel from MAKEOPTS, and call the test script. (This obviously might need to be moved, as the eclass is used in many different places)
2. Patch a couple paths in the parallel test script, as the script assumes it is passed relative paths, and the Gentoo build passes it absolute paths.

I have written and tested these patches on an amd64 box on db-4.6.21_p3-r1 and db-4.5.20_p2-r1.



Reproducible: Always
Comment 1 Nick Fortino 2009-01-01 00:06:58 UTC
Created attachment 176972 [details, diff]
db.eclass changes
Comment 2 Nick Fortino 2009-01-01 00:09:14 UTC
Created attachment 176974 [details, diff]
patch to db-4.6.21 to fix path resolution issues

A similar patch works for 4.5.20, but I haven't explicitly checked that the line numbers are the same.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-05-03 22:24:50 UTC
InCVS. Slightly differently.