-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bpfassets): Refactor to reduce the API exposed by bpfassets (#1413
) * chore(bpf): Don't re-export constants These constants are available in the config package already and do not need to be re-exported under a different name. Signed-off-by: Dave Tucker <dave@dtucker.co.uk> * chore(bpf): Remove global variables from pkg/bpfassets This reduces the API exposed by the pkg/bpfassets and also makes it easier to test. Signed-off-by: Dave Tucker <dave@dtucker.co.uk> * chore(Makefile): Fix test run control Remove the verbose test targets. You can enable this with make VERBOSE=1 test. Ensure e2e tests aren't run in the normal test target as they will fail. Skip bpfassets tests as they need sudo. Compile bpfassets tests to a tmpdir and then run them. Fix assertions in the bpfassets test to skip cpuFreq given that this isn't populated, and to add more assertions in the data that comes from `processes`. Split test run into unit-test, bpf-test and bench targets. Signed-off-by: Dave Tucker <dave@dtucker.co.uk> --------- Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
- Loading branch information
1 parent
937799d
commit e0ec4fd
Showing
94 changed files
with
9,444 additions
and
4,724 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,6 @@ local-dev-cluster | |
|
||
# object files | ||
*.o | ||
|
||
# test coverage | ||
coverage.out |
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
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
Oops, something went wrong.