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

Commit

Permalink
improving the check
Browse files Browse the repository at this point in the history
  • Loading branch information
mo271 committed Apr 5, 2018
1 parent b86cf01 commit e94b94e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
14 changes: 2 additions & 12 deletions build/pkgs/scipoptsuite/spkg-check
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,13 @@ if [ "$SAGE_LOCAL" = "" ]; then
exit 1
fi

cd src

# Choice of OPT should be consistent with spkg-install
OPT=opt
if [ `uname` = 'Darwin' ] ; then
OPT=dbg
fi
cd src/build/

echo "Now running the SCIP test suite..."
# Do the tests with the installed version of SCIP.
# (The uninstalled ones do not work because we did not adjust their library dependencies.)
$MAKE check OPT=$OPT MAINFILE="$SAGE_LOCAL"/bin/scip | tee testsuite.log
$MAKE check MAINFILE="$SAGE_LOCAL"/bin/scip | tee testsuite.log
if [ $? -ne 0 ]; then
echo >&2 "Error: The SCIP test suite failed with an error status."
exit 1
fi
if grep -q fail testsuite.log ; then
echo >&2 "Error: The SCIP test suite failed."
exit 1
fi
3 changes: 1 addition & 2 deletions build/pkgs/scipoptsuite/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX="$SAGE_LOCAL"/ -DCMAKE_VERBOSE_MAKEFILE=ON
make
make check
make install

$SAGE_LOCAL/bin/scip -s /dev/null -c quit
Expand All @@ -22,4 +21,4 @@ if [ $? -ne 0 ]; then
fi


echo "finished building Scipoptsuite"
echo "Finished building scipoptsuite"

0 comments on commit e94b94e

Please sign in to comment.