Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils-Arne Dreier
dune-common
Commits
a46de680
Commit
a46de680
authored
9 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[release][CMake] Build eigenvaluestest iff LAPACK found.
parent
927edfc7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/test/CMakeLists.txt
+17
-12
17 additions, 12 deletions
dune/common/test/CMakeLists.txt
with
17 additions
and
12 deletions
dune/common/test/CMakeLists.txt
+
17
−
12
View file @
a46de680
...
...
@@ -10,7 +10,6 @@ set(TESTS
diagonalmatrixtest
dynmatrixtest
dynvectortest
eigenvaluestest
enumsettest
fmatrixtest
fvectortest
...
...
@@ -52,13 +51,6 @@ set(COMPILEFAILTESTS
genericiterator_compile_fail
nullptr-test-fail
)
set
(
TESTPROGS
${
TESTS
}
${
FAILTESTS
}
)
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target
(
_test_target
)
add_dependencies
(
${
_test_target
}
${
TESTPROGS
}
)
# Add the executables needed for the tests
add_executable
(
"arraylisttest"
arraylisttest.cc
)
add_executable
(
"arraytest"
arraytest.cc
)
...
...
@@ -81,9 +73,12 @@ target_link_libraries("dynmatrixtest" "dunecommon")
add_executable
(
"dynvectortest"
dynvectortest.cc
)
add_executable
(
"eigenvaluestest"
eigenvaluestest.cc
)
target_link_libraries
(
eigenvaluestest dunecommon
)
target_link_libraries
(
eigenvaluestest
${
LAPACK_LIBRARIES
}
)
if
(
${
HAVE_LAPACK
}
)
add_executable
(
eigenvaluestest eigenvaluestest.cc
)
target_link_libraries
(
eigenvaluestest dunecommon
)
target_link_libraries
(
eigenvaluestest
${
LAPACK_LIBRARIES
}
)
list
(
APPEND TESTS eigenvaluestest
)
endif
()
add_executable
(
"diagonalmatrixtest"
diagonalmatrixtest.cc
)
target_link_libraries
(
"diagonalmatrixtest"
"dunecommon"
)
...
...
@@ -171,6 +166,13 @@ add_executable("tuplestest" tuplestest.cc)
add_executable
(
"tupleutilitytest"
tupleutilitytest.cc
)
add_executable
(
"utilitytest"
utilitytest.cc
)
set
(
TESTPROGS
${
TESTS
}
${
FAILTESTS
}
)
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target
(
_test_target
)
add_dependencies
(
${
_test_target
}
${
TESTPROGS
}
)
# Add the tests to be executed
foreach
(
_TEST
${
TESTPROGS
}
)
add_test
(
${
_TEST
}
${
_TEST
}
)
...
...
@@ -178,10 +180,13 @@ endforeach(_TEST)
# treat tests returning code 77 as skipped
set_tests_properties
(
eigenvaluestest
mpicollectivecommunication
parametertreelocaletest
PROPERTIES SKIP_RETURN_CODE 77
)
if
(
${
HAVE_LAPACK
}
)
set_tests_properties
(
eigenvaluestest
PROPERTIES SKIP_RETURN_CODE 77
)
endif
()
# set properties for failing tests
set_tests_properties
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment