-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf2go: optionally add suffix in output file names
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]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters