Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove leak target #187

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/fprime/fbuild/target_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@
build_type=BuildType.BUILD_TESTING,
scope=TargetScope.BOTH,
)
BuildSystemTarget(
"check_leak",
mnemonic="check",
desc="Build and run unittests with memory leak checking",
flags={"leak"},
build_type=BuildType.BUILD_TESTING,
scope=TargetScope.BOTH,
)
GcovrTarget(
check,
mnemonic="check",
Expand Down
12 changes: 2 additions & 10 deletions src/fprime/util/help_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,11 @@
{EXECUTABLE} impl --ut

""",
"check": f"""Run fprime unit tests with optional leak checking and test coverage.
"check": f"""Run fprime unit tests with optional test coverage.

'{EXECUTABLE} check' handles the running of unit tests. It can be used on components to run the component's unit tests,
deployments to run deployment unit tests, and with the '--all' flag to run all unit tests found in the build system.
'{EXECUTABLE} check' implies the '--ut' flag and specifying it is redundant. When '{EXECUTABLE} check' is run with the
'--leak' flag, valgrind is used to look for resource leaks.
'{EXECUTABLE} check' implies the '--ut' flag and specifying it is redundant.

'{EXECUTABLE} check' can also be supplied the '--coverage' flag. When the '--coverage' flag is supplied, the unit test
is run and 'gcovr' is run on the output to check coverage. The default flags to 'gcovr' are '--print-summary', '--txt',
Expand All @@ -174,17 +173,10 @@
cd Ref/SignalGen
{EXECUTABLE} check

-- Run Ref/SignalGen Unit Tests With Leak Check --
cd Ref/SignalGen
{EXECUTABLE} check --leak

-- Run Ref/SignalGen Unit Tests With Coverage --
cd Ref/SignalGen
{EXECUTABLE} check --coverage

-- Run Ref/SignalGen Unit Tests With Detailed HTML Coverage --
cd Ref/SignalGen
{EXECUTABLE} check --coverage
""",
"generate": f"""Generate build caches for the specified deployment

Expand Down
Loading