Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/*/spkg-check.in: Do not print misleading error messages: a…
Browse files Browse the repository at this point in the history
…void sdh_make
  • Loading branch information
Matthias Koeppe committed Apr 18, 2020
1 parent 9b213a4 commit ca36a87
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 15 deletions.
5 changes: 5 additions & 0 deletions build/bin/sage-dist-helpers
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ sdh_make() {
}


sdh_make_check() {
echo "Checking $PKG_NAME"
${MAKE:-make} check "$@" || sdh_die "Failures checking $PKG_NAME"
}

sdh_make_install() {
echo "Installing $PKG_NAME"
if [ -n "$SAGE_DESTDIR" ]; then
Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/awali/spkg-check.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd src/_build
sdh_make check
sdh_make_check
2 changes: 1 addition & 1 deletion build/pkgs/barvinok/spkg-check.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd src
sdh_make check
sdh_make_check
2 changes: 1 addition & 1 deletion build/pkgs/cocoalib/spkg-check.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd src/
sdh_make check
sdh_make_check
2 changes: 1 addition & 1 deletion build/pkgs/e_antic/spkg-check.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
###############################################################################

cd src
sdh_make check
sdh_make_check
8 changes: 5 additions & 3 deletions build/pkgs/fflas_ffpack/spkg-check.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cd src
sdh_make check
# Do not use sdh_make or sdh_make_check here because we are doing our own error
# handling below
${MAKE:-make} check

if [ $? -ne 0 ]; then
cat tests/test-suite.log
exit 1
cat tests/test-suite.log
exit 1
fi
2 changes: 1 addition & 1 deletion build/pkgs/isl/spkg-check.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd src
sdh_make check
sdh_make_check
8 changes: 4 additions & 4 deletions build/pkgs/openblas/spkg-check.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ if [ "x$SAGE_FAT_BINARY" = "xyes" ]; then
OPENBLAS_CONFIGURE="$OPENBLAS_CONFIGURE TARGET=PRESCOTT"
fi

sdh_make tests $OPENBLAS_CONFIGURE
${MAKE:-make} tests $OPENBLAS_CONFIGURE
if [ $? -ne 0 ]; then
# First make sure we already didn't set a target
if [[ $OPENBLAS_CONFIGURE == *"TARGET"* ]]; then
sdh_die "Error while running the OpenBlas testsuite ... exiting"
sdh_die "Error while running the OpenBLAS testsuite ... exiting"
else
# The recommended TARGET is ATOM if CPU fails
# See https://github.com/xianyi/OpenBLAS/issues/1204
OPENBLAS_CONFIGURE="$OPENBLAS_CONFIGURE TARGET=ATOM"
echo "Error while testing the OpenBLAS testsuite"
echo "Retrying the OpenBAS testsuit with TARGET=ATOM"
sdh_make tests $OPENBLAS_CONFIGURE
echo "Retrying the OpenBLAS testsuite with TARGET=ATOM"
${MAKE:-make} tests $OPENBLAS_CONFIGURE
if [ $? -ne 0 ]; then
sdh_die "Error while running the OpenBLAS testsuite ... exiting"
fi
Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/polylib/spkg-check.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd src
sdh_make check
sdh_make_check
2 changes: 1 addition & 1 deletion build/pkgs/polymake/spkg-check.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd src/
sdh_make test
${MAKE:-make} test || sdh_die "Failures checking polymake"
2 changes: 1 addition & 1 deletion build/pkgs/tides/spkg-check.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd src
sdh_make check AM_CFLAGS="" AM_FFLAGS=""
sdh_make_check AM_CFLAGS="" AM_FFLAGS=""

0 comments on commit ca36a87

Please sign in to comment.