linamh/sys-libs/glibc/files/eblits/src_test.eblit

43 lines
1.1 KiB
Plaintext
Raw Normal View History

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_test.eblit,v 1.3 2008/03/23 18:06:18 vapier Exp $
toolchain-glibc_src_test() {
cd "${WORKDIR}"/build-${ABI}-${CTARGET}-$1 || die "cd build-${ABI}-${CTARGET}-$1"
unset LD_ASSUME_KERNEL
make check && return 0
einfo "make check failed - re-running with --keep-going to get the rest of the results"
make -k check
ewarn "make check failed for ${ABI}-${CTARGET}-$1"
return 1
}
eblit-glibc-src_test() {
local ret=0
setup_env
# give tests more time to complete
export TIMEOUTFACTOR=5
if [[ -z ${OABI} ]] && has_multilib_profile ; then
OABI=${ABI}
einfo "Testing multilib glibc for ABIs: $(get_install_abis)"
for ABI in $(get_install_abis) ; do
export ABI
einfo " Testing ${ABI} glibc"
src_test
((ret+=$?))
done
ABI=${OABI}
unset OABI
[[ ${ret} -ne 0 ]] \
&& die "tests failed" \
|| return 0
fi
want_linuxthreads && toolchain-glibc_src_test linuxthreads ; ((ret+=$?))
want_nptl && toolchain-glibc_src_test nptl ; ((ret+=$?))
return ${ret}
}