-
Notifications
You must be signed in to change notification settings - Fork 129
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
Add portable uBPF unit tests that run on Windows / Linux / MacOS #119
Add portable uBPF unit tests that run on Windows / Linux / MacOS #119
Conversation
c8689df
to
cd2f3f2
Compare
fd103ff
to
954756f
Compare
@alessandrogario this is a continuation of your work to have uBPF build on Windows, Linux, and MacOS. Would you be able to take a quick look at this? |
@rlane can you authorize the coveralls.io app so it can post code coverage stats for PRs? |
954756f
to
9aaf102
Compare
I have tested this on an M1 Mac and under Arm64 Linux with no issues. Thank you - this fixes many Python version contortions I needed to do. |
Awesome. I hope to eventually retire the Python-based tests, but there are still some code coverage gaps in the C++ tests that need to be addressed. I want to get this checked in as the first step towards getting this updated. |
9e01d7d
to
86f5276
Compare
30f8b3a
to
3dbc5d6
Compare
Need to refactor this now that the parsing and testing code has been lifted into it's own repo bpf-conformance. |
14532a1
to
25dc1e1
Compare
@matt-gretton-dann can you check on your MacOS and see what the correct package name for the equivalent of "libboost-dev", "libboost-program-options-dev", and "libboost-filesystem-dev" are. I think "boost" is the correct for "libboost-dev", but I don't have access to a MacOS instance to check the others. |
Converting to draft until MacOS and ARM64 issues are resolved. |
@Alan-Jowett: boost is all you need. However, there are problems in the |
@Alan-Jowett: To help fix the macOS build Alan-Jowett/bpf_conformance#24 needs to be approved, and then the submodule dependency updated to the appropriate hash. |
Thanks for the help @matt-gretton-dann. The MacOS ones now pass. Hopefully I will get the amr64 fixed next. |
f129abb
to
19aea91
Compare
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
19aea91
to
521675d
Compare
Everything appears to build and run. |
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
b0d0fee
to
003a47b
Compare
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
003a47b
to
c33cc8b
Compare
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
There is value in getting this checked in. Filed an issue to resolve the ubsan / qemu issue later. |
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now looks good to me and has great value in improving quality of life when building & testing, so any further issues can be fixed in future PRs.
Run the uBPF code generation tests and capture code coverage..
Resolves: #117
Resolves: #141
Resolves: #149
Signed-off-by: Alan Jowett alan.jowett@microsoft.com