-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add bpf2go test emit-and-load specs+bpf objects
This commit extends `api_test.go` to check whether specs and bpf objects are correctly loaded. It also accounts for the new Variable/VariableSpec in the test. In addition, this commit adds a bpf2go test in `output_test.go` to verify that all the listed bpf objects (i.e., variables, maps and programs) are emitted. The tests looks for the output program, stored in a buffer, which should contain the expected declarations. This commits introduces further checks in the `api_test.go` Signed-off-by: Simone Magnani <[email protected]>
- Loading branch information
1 parent
7e17150
commit 0912b3a
Showing
2 changed files
with
38 additions
and
0 deletions.
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