Lines 121-130
Link Here
|
121 |
einfo "Running sys-libs/db testsuite" |
121 |
einfo "Running sys-libs/db testsuite" |
122 |
ewarn "This can take 6+ hours on modern machines" |
122 |
ewarn "This can take 6+ hours on modern machines" |
123 |
cd ${S} |
123 |
cd ${S} |
124 |
echo 'source ../test/test.tcl' >testrunner.tcl |
124 |
echo 'source ../test/test.tcl' > testrunner.tcl |
125 |
echo 'run_std' >>testrunner.tcl |
125 |
testJobs=`echo "${MAKEOPTS}" | \ |
|
|
126 |
sed -e "s/.*-j\([0-9]\+\).*/\1/"` |
127 |
if [[ ${testJobs} =~ [[:digit:]]+ ]]; then |
128 |
echo "run_parallel ${testJobs} run_std" >> testrunner.tcl |
129 |
else |
130 |
echo 'run_std' >>testrunner.tcl |
131 |
fi |
132 |
|
126 |
tclsh testrunner.tcl |
133 |
tclsh testrunner.tcl |
127 |
egrep -qs '^FAIL' ALL.OUT && die "Some tests failed, please see ${S}/ALL.OUT" |
134 |
egrep -qs '^FAIL' ALL.OUT* && die "Some tests failed, please see ${S}/ALL.OUT*" |
128 |
else |
135 |
else |
129 |
eerror "You must have USE=tcl to run the sys-libs/db testsuite." |
136 |
eerror "You must have USE=tcl to run the sys-libs/db testsuite." |
130 |
fi |
137 |
fi |