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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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.

1 participant