[Ipopt-tickets] [Ipopt] #75: Ipopt fails unit test in Linux with no ThirdParty source
Ipopt
coin-trac at coin-or.org
Sun Dec 15 14:45:46 EST 2013
#75: Ipopt fails unit test in Linux with no ThirdParty source
-------------------------+----------------------
Reporter: tkr | Owner: andreasw
Type: defect | Status: closed
Priority: normal | Component: Ipopt
Version: 3.4 | Severity: normal
Resolution: worksforme | Keywords:
-------------------------+----------------------
Comment (by rcasero):
A consideration about whether a warning or error message would be better.
I'm building IPOPT (Ipopt-3.11.6) from CMake on linux as an external
project (see code below). I think that the fact that "make test" fails
with the error reported above (for every linear solver that is not
present?) then makes CMake exit with an error too (at least, that's what
happening to me).
If that's the case, and I'm not missing anything, given that linear
solvers are not a requisite to build IPOPT, wouldn't it make more sense if
the tests gave a warning rather than an error?
{{{
enable_language(Fortran)
set(IPOPT_SOURCE_DIR ${GERARDUS_SOURCE_DIR}/cpp/src/third-
party/Ipopt-3.11.6)
# build IPOPT
include(ExternalProject)
ExternalProject_Add(IPOPT_GERARDUS
PREFIX "${IPOPT_SOURCE_DIR}"
STAMP_DIR "${IPOPT_SOURCE_DIR}/output"
SOURCE_DIR "${IPOPT_SOURCE_DIR}"
DOWNLOAD_COMMAND ""
CONFIGURE_COMMAND ./configure CC=$ENV{CC} CXX=$ENV{CXX} F77=$ENV{F77}
--prefix=${IPOPT_SOURCE_DIR}/output
BINARY_DIR "${IPOPT_SOURCE_DIR}"
BUILD_COMMAND make
TEST_BEFORE_INSTALL 1
# we don't run the test, because tests for any of the linear solvers
# that we don't use will fail, as they won't be installed in the
# system, and this will make cmake stop with an error
#
# TEST_COMMAND make test
TEST_COMMAND ""
INSTALL_DIR "${IPOPT_SOURCE_DIR}/output"
INSTALL_COMMAND ""
LOG_CONFIGURE 0
LOG_BUILD 0
LOG_TEST 0
LOG_INSTALL 0
)
}}}
--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/75#comment:4>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.
More information about the Ipopt-tickets
mailing list