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

bpf2go: optionally add suffix in output file names #1624

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

mejedi
Copy link
Contributor

@mejedi mejedi commented Dec 12, 2024

Testing complex ebpf code sometimes requires writing C code specifically for the test. Exclude testing code from the build unless running tests.

Add "_test" suffix in generated file names if invoking "go:generate" directive was in a test file (exposed via $GOFILE).

Provide -output-suffix command line option to override.

Testing complex ebpf code sometimes requires writing C code specifically
for the test. Exclude testing code from the build unless running tests.

Add "_test" suffix in generated file names if invoking "go:generate"
directive was in a test file (exposed via $GOFILE).

Provide -output-suffix command line option to override.

Signed-off-by: Nick Zavaritsky <[email protected]>
@mejedi mejedi force-pushed the bpf2go-output-suffix branch from 048f26f to c1455bf Compare December 25, 2024 09:14
@ti-mo ti-mo merged commit b805828 into main Jan 8, 2025
15 of 17 checks passed
@ti-mo ti-mo deleted the bpf2go-output-suffix branch January 8, 2025 12:28
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