Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run alignchecker as part of unit tests #216

Merged
merged 1 commit into from
Jul 7, 2022
Merged

Conversation

tpapagian
Copy link
Member

@tpapagian tpapagian commented Jul 4, 2022

In order to run the aligncheker (i.e. compare the Go and C structs that are shared between user and kernel space) the user has to issue it manually:

$ sudo ./tetragon-alignchecker ./bpf/objs/bpf_alignchecker.o
OK

This commit adds a new unit test in pkg/alignchecker/ that calls the alignchecker as part of the Go tests.

Signed-off-by: Anastasios Papagiannis [email protected]

In order to run the aligncheker (i.e. compare the Go and C structs
that are shared between user and kernel space) the user has to issue
it manually:

$ sudo ./tetragon-alignchecker ./bpf/objs/bpf_alignchecker.o
OK

This commit adds a new unit test in pkg/alignchecker/ that calls the
alignchecker as part of the Go tests.

Signed-off-by: Anastasios Papagiannis <[email protected]>
@tpapagian tpapagian force-pushed the pr/apapag/fix_alignchecker branch from ab2faf5 to 0242449 Compare July 4, 2022 15:02
@tpapagian tpapagian marked this pull request as ready for review July 4, 2022 15:16
@tpapagian tpapagian requested a review from a team as a code owner July 4, 2022 15:16
@tpapagian tpapagian requested a review from tixxdz July 4, 2022 15:16
@jrfastab jrfastab merged commit 3b21362 into main Jul 7, 2022
@jrfastab jrfastab deleted the pr/apapag/fix_alignchecker branch July 7, 2022 06:25
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.

3 participants