Skip to content

Conversation

@nega0
Copy link
Owner

@nega0 nega0 commented Feb 11, 2025

lcov's make uninstall wiped my ~/.local/share. This was... surprising.

  • prefer to be explicit when constructing paths
  • fix aggressive "rm -rf" with a less aggressive "rm -rf"
  • remove examples and tests from the install target

nega0 and others added 30 commits February 13, 2024 14:14
* fix numeric compare

Signed-off-by: nega <[email protected]>

* rename sub-test makefile

Signed-off-by: nega <[email protected]>

* add test artifact to "clean"

Signed-off-by: nega <[email protected]>

* add test artifacts to gitignore

Signed-off-by: nega <[email protected]>

---------

Signed-off-by: nega <[email protected]>
* Fixes shell expression in checkstyle target

An incorrect shell expression was preventing the `make checkstyle
UPDATE=1` from applying the perltidy fixes.

Signed-off-by: nega <[email protected]>

* add *.orig (and *.rej) to the gitignore

Signed-off-by: nega <[email protected]>

---------

Signed-off-by: nega <[email protected]>
  If --all flag is specified, then capture from both runtime (.gcda) and
  bare compile-time (.gcno) files - i.e., include unused .gcno files
  which have no corresponding runtime data.

Signed-off-by:  Henry Cox <[email protected]>
…nk to first TLA line in 'file table' flat view.

Signed-off-by: Henry Cox <[email protected]>
See 'genhtml --select-script ...'
Add file name and line number to 'select' callback.
Clarify '--select-script' documentation.

Signed-off-by: Henry Cox <[email protected]>
Fix bug that caused per-testcase summary to not be generated.

Signed-off-by: Henry Cox <[email protected]>
hey applied.
Reformat/clarify report format man page.
Fix typo in warning message.

Signed-off-by:  Henry Cox <[email protected]>
Enable coverage collection for more tests/more test types.
Feature to force parallel execution - even if there is only one
task - to improve testability.

Signed-off-by:  Henry Cox <[email protected]>
llvm-cov seems to generate them when translating from profile to lcov
format.
The same effect can be achieved via '--omit-lines' - but filter option
is easier for users, especially as this is a common case.

Signed-off-by:  Henry Cox <[email protected]>
of whether their 'hit' count is zero or not.
This may be useful in LLVM-generated coverage data which tends to
contain large number of these - distorting statistics.

Signed-off-by:  Henry Cox <[email protected]>
User expected to have some effect - or would not have passed the option.
Without this check, user may see some unexpected results that look a lot
like tool bugs (...we ignored some option).

Signed-off-by: Henry Cox <[email protected]>
Add infrastructure to control retries.

Signed-off-by:  Henry Cox <[email protected]>
Enable exclusions and substitutions in perl2lcov.
Warn if coverage DB is empty.

Signed-off-by: Henry Cox <[email protected]>
Signed-off-by:  Henry Cox <[email protected]>
Fix issues exposed by those tests.

Signed-off-by:  Henry Cox <[email protected]>
That is:  use environment variable rather than hard-coded '/etc'
or '/usr/local/etc'.

Signed-off-by: Henry Cox <[email protected]>
can happen only if there is an implementation bug (not a user
error or data inconsistency)

Signed-off-by: Henry Cox <[email protected]>
Can simplify user's Jenkins scripts.

Signed-off-by: Henry Cox <[email protected]>
Only emit explantory text on the first message.

Signed-off-by: Henry Cox <[email protected]>
Signed-off-by: Henry Cox <[email protected]>
Add corresponding error message tests.

Signed-off-by:  Henry Cox <[email protected]>
all the tracefiles in the indicated subdirectory (aggregating them).
This feature makes it much easier to find and reuse baseline and/or
current coverage data which was is held in a per-testsuite DB.

Signed-off-by: Henry Cox <[email protected]>
henry2cox and others added 29 commits December 18, 2024 13:05
Signed-off-by: Henry Cox <[email protected]>
…[..], shell=True, [..])` (fixes linux-test-project#350) (linux-test-project#356)

* xml2lcovutil.py: Extract variable lcov

Signed-off-by: Sebastian Pipping <[email protected]>

* xml2lcov: Stop allowing command injection via xml2lcovutil.py

Signed-off-by: Sebastian Pipping <[email protected]>

* py2lcov: Stop allowing command injection

Signed-off-by: Sebastian Pipping <[email protected]>

---------

Signed-off-by: Sebastian Pipping <[email protected]>
…inux-test-project#361)

identical to the corresponding branch:  reduce verbosity/noise.

Signed-off-by: Henry Cox <[email protected]>
… default filters only if '--filter ...' option was not used. (linux-test-project#362)

Error if both '--filter' and '--no-markers' are specified (or or the other - not both).
Action is unchanged (filter out excluded regions) if no filter options are specified.

Signed-off-by: Henry Cox <[email protected]>
…for corresponding 'date' table entries in HTML report. (linux-test-project#363)



Signed-off-by: Henry Cox <[email protected]>
…t#365)

If user explicitly asks to use a particular verion (...by having it in her environment):  use it.

Signed-off-by: Henry Cox <[email protected]>
Clarification + fix typos

Signed-off-by:  Henry Cox <[email protected]>

Signed-off-by: Henry Cox <[email protected]>
* Test updates:  portability, common utility, fix typo

Signed-off-by: Henry Cox <[email protected]>
…inux-test-project#375)

* README: Fix list indentation that changed halfway in the list

* README: Add missing Perl dependency TimeDate for Date::Parse for command genhtml.  Not to be mixed up with DateTime, which is also needed (but already documented).

* run_test_suite.yml: Treat CPAN TimeDate as a direct dependency

Signed-off-by: Sebastian Pipping <[email protected]>
Signed-off-by:  Henry Cox <[email protected]>
lcov invokes geninfo but didn't provide it with the user's --tempdir
option value (if specified); pass it down.

Signed-off-by: Paul Smith <[email protected]>
…t#378) (linux-test-project#383)

* extract.sh: Use "grep -F" where possible
* extract.sh: Set ${USER} when not set or empty in environment

Signed-off-by: Sebastian Pipping <[email protected]>
* Add location to error message.
* Update default version ID
* fix spelling

Signed-off-by: Henry Cox <[email protected]>
This makes things more clear when looking at `find`, "shell", and `make`
syntax on one line (and removes double slashes in the output.)

Signed-off-by: nega <[email protected]>
`make uninstall` deletes `$(PREFIX)/share` instead of
`$(PREFIX)/share/lcov` with `rm -rf`. This is surprising. This patch
fixes that unconditional delete by deleting `$(PREFIX)/share/lcov`. This
is still not optimal, and wouldn't be necessary if the tests were not
installed.

This patch also cleans up the installed manpages.

Signed-off-by: nega <[email protected]>
This eliminates the need for `rm -rf` in the uninstall target.

Signed-off-by: nega <[email protected]>
@nega0 nega0 closed this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.