--- /usr/portage/eclass/db.eclass 2006-08-15 20:05:54.000000000 +0000 +++ /usr/portage/eclass/db.eclass 2008-12-31 23:32:40.000000000 +0000 @@ -121,10 +121,17 @@ einfo "Running sys-libs/db testsuite" ewarn "This can take 6+ hours on modern machines" cd ${S} - echo 'source ../test/test.tcl' >testrunner.tcl - echo 'run_std' >>testrunner.tcl + echo 'source ../test/test.tcl' > testrunner.tcl + testJobs=`echo "${MAKEOPTS}" | \ + sed -e "s/.*-j\([0-9]\+\).*/\1/"` + if [[ ${testJobs} =~ [[:digit:]]+ ]]; then + echo "run_parallel ${testJobs} run_std" >> testrunner.tcl + else + echo 'run_std' >>testrunner.tcl + fi + tclsh testrunner.tcl - egrep -qs '^FAIL' ALL.OUT && die "Some tests failed, please see ${S}/ALL.OUT" + egrep -qs '^FAIL' ALL.OUT* && die "Some tests failed, please see ${S}/ALL.OUT*" else eerror "You must have USE=tcl to run the sys-libs/db testsuite." fi