Skip to content
Snippets Groups Projects
Commit 823a76c5 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake][suitesparse] Add ldltest and spqr test to build system

Handle skipped test for missing dependencies.
parent 4bb59d9a
No related branches found
No related tags found
1 merge request!8Feature/fs1519 suitesparse ldl spqr
......@@ -67,7 +67,15 @@ if(SuiteSparse_UMFPACK_FOUND)
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "umfpack_decomp")
endif()
if (SUPERLU_FOUND OR SuiteSparse_UMFPACK_FOUND)
dune_add_test(
SOURCES ldltest.cc
SKIP_ON_77)
dune_add_test(
SOURCES spqrtest.cc
SKIP_ON_77)
if ((SUPERLU_FOUND) OR (SuiteSparse_UMFPACK_FOUND))
dune_add_test(SOURCES overlappingschwarztest.cc)
endif()
......
......@@ -14,6 +14,7 @@
int main(int argc, char** argv)
{
#if HAVE_LDL
try
{
typedef double FIELD_TYPE;
......@@ -80,4 +81,8 @@ int main(int argc, char** argv)
{
std::cerr << "Unknown exception" << std::endl;
}
#else // #if HAVE_LDL
std::cerr << "You need SuiteSparse's LDL to run this test." << std::endl;
return 77;
#endif // #if HAVE_LDL
}
......@@ -15,6 +15,7 @@
int main(int argc, char** argv)
{
#if HAVE_SPQR
try
{
typedef double FIELD_TYPE;
......@@ -81,4 +82,8 @@ int main(int argc, char** argv)
{
std::cerr << "Unknown exception" << std::endl;
}
#else // #if HAVE_SPQR
std::cerr << "You need SuiteSparse's LDL to run this test." << std::endl;
return 77;
#endif // #if HAVE_SPQR
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment