Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
code
pugs
Commits
fdab3fbc
Commit
fdab3fbc
authored
4 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Add missing test for Messenger
Also rename test file (getting rid of the 'mpi_' prefix)
parent
8a3b620d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!63
Feature/utils coverage
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
tests/CMakeLists.txt
+1
-1
1 addition, 1 deletion
tests/CMakeLists.txt
tests/test_Messenger.cpp
+7
-0
7 additions, 0 deletions
tests/test_Messenger.cpp
with
9 additions
and
2 deletions
CMakeLists.txt
+
1
−
1
View file @
fdab3fbc
...
@@ -447,7 +447,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage")
...
@@ -447,7 +447,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage")
COMMAND
${
FASTCOV
}
-q --gcov
"
${
GCOV_BIN
}
"
COMMAND
${
FASTCOV
}
-q --gcov
"
${
GCOV_BIN
}
"
--include
"
${
PUGS_SOURCE_DIR
}
/src"
--include
"
${
PUGS_SOURCE_DIR
}
/src"
--exclude
"
${
PUGS_SOURCE_DIR
}
/src/main.cpp"
"
${
PUGS_SOURCE_DIR
}
/src/utils/BacktraceManager.*"
"
${
PUGS_SOURCE_DIR
}
/src/utils/FPEManager.*"
--exclude
"
${
PUGS_SOURCE_DIR
}
/src/main.cpp"
"
${
PUGS_SOURCE_DIR
}
/src/utils/BacktraceManager.*"
"
${
PUGS_SOURCE_DIR
}
/src/utils/FPEManager.*"
"
${
PUGS_SOURCE_DIR
}
/src/utils/SignalManager.*"
--lcov -o coverage.info -n
--lcov -o coverage.info -n
COMMAND
${
LCOV
}
--gcov
"
${
GCOV_BIN
}
"
--list coverage.info
COMMAND
${
LCOV
}
--gcov
"
${
GCOV_BIN
}
"
--list coverage.info
...
...
This diff is collapsed.
Click to expand it.
tests/CMakeLists.txt
+
1
−
1
View file @
fdab3fbc
...
@@ -93,7 +93,7 @@ add_executable (unit_tests
...
@@ -93,7 +93,7 @@ add_executable (unit_tests
add_executable
(
mpi_unit_tests
add_executable
(
mpi_unit_tests
mpi_test_main.cpp
mpi_test_main.cpp
mpi_
test_Messenger.cpp
test_Messenger.cpp
)
)
add_library
(
test_Pugs_MeshDataBase
add_library
(
test_Pugs_MeshDataBase
...
...
This diff is collapsed.
Click to expand it.
tests/
mpi_
test_Messenger.cpp
→
tests/test_Messenger.cpp
+
7
−
0
View file @
fdab3fbc
...
@@ -471,4 +471,11 @@ TEST_CASE("Messenger", "[mpi]")
...
@@ -471,4 +471,11 @@ TEST_CASE("Messenger", "[mpi]")
std
::
remove
(
"barrier_test"
);
std
::
remove
(
"barrier_test"
);
}
}
SECTION
(
"errors"
)
{
int
argc
=
0
;
char
**
argv
=
nullptr
;
REQUIRE_THROWS_WITH
((
parallel
::
Messenger
::
create
(
argc
,
argv
)),
"unexpected error: Messenger already created"
);
}
}
}
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