Skip to content

Comments

bpf2go: optionally add suffix in output file names#1624

Merged
ti-mo merged 1 commit intomainfrom
bpf2go-output-suffix
Jan 8, 2025
Merged

bpf2go: optionally add suffix in output file names#1624
ti-mo merged 1 commit intomainfrom
bpf2go-output-suffix

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