summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-06 08:46:13 +0100
committerSam James <sam@gentoo.org>2022-06-07 00:18:13 +0100
commit675209dbfc1635d67fc4ae761a87edbb0385f125 (patch)
tree65ff27ea270067225a5af0e7c2362bf16baa515d /eclass
parenttoolchain.eclass: allow forcefully disabling bootstrapping for development (diff)
downloadgentoo-675209dbfc1635d67fc4ae761a87edbb0385f125.tar.gz
gentoo-675209dbfc1635d67fc4ae761a87edbb0385f125.tar.bz2
gentoo-675209dbfc1635d67fc4ae761a87edbb0385f125.zip
toolchain.eclass: enhance src_test (print summary)
Just like Fedora and opensuse do. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 8015c5b447ff..6fd79df3269f 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1860,12 +1860,21 @@ gcc_do_make() {
#---->> src_test <<----
toolchain_src_test() {
- cd "${WORKDIR}"/build
+ cd "${WORKDIR}"/build || die
+
+ # From opensuse's spec file:
+ # "asan needs a whole shadow address space"
+ ulimit -v unlimited
# 'asan' wants to be preloaded first, so does 'sandbox'.
# To make asan tests work disable sandbox for all of test suite.
# 'backtrace' tests also does not like 'libsandbox.so' presence.
SANDBOX_ON=0 LD_PRELOAD= emake -k check
+
+ einfo "Testing complete."
+ einfo "Please ignore any 'mail' lines in the summary output below (no mail is sent)."
+ einfo "Summary:"
+ "${S}"/contrib/test_summary
}
#---->> src_install <<----