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

Issue #437: Fixes for --collect-only/--report-only #448

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

SimonKagstrom
Copy link
Owner

For bash, this corrects the name mismatch between --collect-only/--report-only. It doesn't work even then, and I don't think it ever has.

For Mach-O (MacOS binaries) it corrects --report-only.

@SimonKagstrom
Copy link
Owner Author

#437 should techically be fixed by this, although it still doesn't work as compiled code does.

@williamdes
Copy link
Contributor

#437 should techically be fixed by this, although it still doesn't work as compiled code does.

What is the difference in behaviour with this fix?

@williamdes
Copy link
Contributor

Maybe we should add to the testsuite and docs my shunit2 example
as it is a great application of kcov

@SimonKagstrom
Copy link
Owner Author

#437 should techically be fixed by this, although it still doesn't work as compiled code does.

What is the difference in behaviour with this fix?

The regression was that there were two different names used for the "binary" directory: One being a hash of the filename, and the other a hash of the file contents. The fix uses content for both of them, which fixes the error: report-only selected, but the target ... error.

However, the output is still empty and I don't think bash collect+report has ever really worked.

The testsuite needs some overhaul (well, most of the code does), but the main issue with bash has always been that it doesn't use a proper parser, so it's easy to get lost while parsing. Until that's fixed, I think we can hold further bash testsuite improvements. Unfortunately, I'm quite frankly unlikely to do any work on that, since it's a quite complex task unless there's an easy-to-use C or C++ library that parses it. Also, I really only use kcov for compiled code myself :-)

@SimonKagstrom SimonKagstrom merged commit 9133fec into master Jul 9, 2024
18 checks passed
@SimonKagstrom
Copy link
Owner Author

Maybe we should add to the testsuite and docs my shunit2 example as it is a great application of kcov

Replied in the other comment, but clarification here :-). Yes, that would be a good addition! However, I think it will be more important once the parser is better.

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.

2 participants