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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Core Modules
dune-common
Commits
5813480e
Commit
5813480e
authored
10 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/FS1538-cmake-skipped-tests'
parents
9addf077
81b2918c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/common/parallel/test/CMakeLists.txt
+7
-0
7 additions, 0 deletions
dune/common/parallel/test/CMakeLists.txt
dune/common/test/CMakeLists.txt
+8
-6
8 additions, 6 deletions
dune/common/test/CMakeLists.txt
dune/common/test/eigenvaluestest.cc
+7
-0
7 additions, 0 deletions
dune/common/test/eigenvaluestest.cc
with
22 additions
and
6 deletions
dune/common/parallel/test/CMakeLists.txt
+
7
−
0
View file @
5813480e
...
...
@@ -30,3 +30,10 @@ add_test(selectiontest selectiontest)
add_test
(
indicestest indicestest
)
add_test
(
syncertest syncertest
)
add_test
(
variablesizecommunicatortest variablesizecommunicatortest
)
# treat tests returning code 77 as skipped
set_tests_properties
(
indicestest
syncertest
variablesizecommunicatortest
PROPERTIES SKIP_RETURN_CODE 77
)
This diff is collapsed.
Click to expand it.
dune/common/test/CMakeLists.txt
+
8
−
6
View file @
5813480e
...
...
@@ -79,9 +79,7 @@ add_executable("dynvectortest" dynvectortest.cc)
add_executable
(
"eigenvaluestest"
eigenvaluestest.cc
)
target_link_libraries
(
eigenvaluestest dunecommon
)
if
(
LAPACK_FOUND
)
target_link_libraries
(
eigenvaluestest
${
LAPACK_LIBRARIES
}
)
endif
(
LAPACK_FOUND
)
target_link_libraries
(
eigenvaluestest
${
LAPACK_LIBRARIES
}
)
add_executable
(
"diagonalmatrixtest"
diagonalmatrixtest.cc
)
target_link_libraries
(
"diagonalmatrixtest"
"dunecommon"
)
...
...
@@ -170,7 +168,13 @@ foreach(_TEST ${TESTPROGS})
add_test
(
${
_TEST
}
${
_TEST
}
)
endforeach
(
_TEST
)
#Set properties for failing tests
# treat tests returning code 77 as skipped
set_tests_properties
(
eigenvaluestest
mpicollectivecommunication
PROPERTIES SKIP_RETURN_CODE 77
)
# set properties for failing tests
set_tests_properties
(
${
FAILTESTS
}
PROPERTIES WILL_FAIL true
)
...
...
@@ -183,5 +187,3 @@ endforeach(_TEST)
set_tests_properties
(
${
COMPILEFAILTESTS
}
PROPERTIES WILL_FAIL true
)
This diff is collapsed.
Click to expand it.
dune/common/test/eigenvaluestest.cc
+
7
−
0
View file @
5813480e
...
...
@@ -14,6 +14,7 @@
using
namespace
Dune
;
#if HAVE_LAPACK
/** \brief Test the eigenvalue code with the Rosser test matrix
This matrix was a challenge for many matrix eigenvalue
...
...
@@ -124,14 +125,20 @@ void testSymmetricFieldMatrix()
DUNE_THROW
(
MathError
,
"Values computed by FMatrixHelp::eigenValues are not in ascending order"
);
}
}
#endif // HAVE_LAPACK
int
main
()
try
{
#if HAVE_LAPACK
testRosserMatrix
<
double
>
();
testSymmetricFieldMatrix
<
double
>
();
return
0
;
#else
std
::
cout
<<
"WARNING: eigenvaluetest needs LAPACK, test disabled"
<<
std
::
endl
;
return
77
;
#endif // HAVE_LAPACK
}
catch
(
Exception
exception
)
{
std
::
cerr
<<
exception
<<
std
::
endl
;
...
...
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