Skip to content

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