Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
0ff64bf1
Commit
0ff64bf1
authored
6 years ago
by
Matthias Grob
Browse files
Options
Downloads
Patches
Plain Diff
Improve ctest unit test naming and filtering
parent
63b967f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
cmake/gtest/px4_add_gtest.cmake
+3
-1
3 additions, 1 deletion
cmake/gtest/px4_add_gtest.cmake
with
4 additions
and
2 deletions
CMakeLists.txt
+
1
−
1
View file @
0ff64bf1
...
...
@@ -424,7 +424,7 @@ include(px4_add_gtest)
if
(
unit_testing
)
include
(
gtest
)
add_custom_target
(
unit_test COMMAND GTEST_COLOR=1
${
CMAKE_CTEST_COMMAND
}
-V -R Test USES_TERMINAL
)
add_custom_target
(
unit_test COMMAND GTEST_COLOR=1
${
CMAKE_CTEST_COMMAND
}
-V -R
Unit
Test
-
USES_TERMINAL
)
endif
()
#=============================================================================
...
...
This diff is collapsed.
Click to expand it.
cmake/gtest/px4_add_gtest.cmake
+
3
−
1
View file @
0ff64bf1
...
...
@@ -50,8 +50,10 @@ function(px4_add_gtest)
REQUIRED SRC
ARGN
${
ARGN
}
)
# infer test name from source filname
without extension
# infer test name from source filname
get_filename_component
(
TESTNAME
${
SRC
}
NAME_WE
)
string
(
REPLACE Test
""
TESTNAME
${
TESTNAME
}
)
set
(
TESTNAME UnitTest-
${
TESTNAME
}
)
# build a binary for the unit test
add_executable
(
${
TESTNAME
}
EXCLUDE_FROM_ALL
${
SRC
}
)
...
...
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