-
Notifications
You must be signed in to change notification settings - Fork 165
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
[WIP] Testing framework shared between all the drivers #783
Closed
Closed
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
e689244
new: first scaffolding tests
Andreagit97 fd82e3e
update: adapt the code to run also syscalls tests
Andreagit97 643e4d1
fix: bind syscall
Andreagit97 7d16854
fix: bpf syscall
Andreagit97 a97df58
fix: close syscall
Andreagit97 67bb9dd
fix: fchdir syscall
Andreagit97 2413292
fix: fcntl syscall
Andreagit97 a9af14d
fix: copy_file_range syscall
Andreagit97 17b6682
fix: flock syscall
Andreagit97 d17edda
update: enable again the sys_exit tests
Andreagit97 79bbaff
fix: ioctl syscall
Andreagit97 8e0da9a
fix: mkdir syscall
Andreagit97 8b8f24b
fix: ptrace syscall
Andreagit97 9cd7148
fix: setns syscall
Andreagit97 59e9b3d
fix: setpgid syscall
Andreagit97 dbb077b
fix: shutdown syscall
Andreagit97 caab5a3
fix: recvfrom syscall
Andreagit97 4dfd14c
fix: recvmsg syscall
Andreagit97 8230e7c
fix: signalfd and signalfd4 tests
Andreagit97 e7d524e
fix: correct order in nwtwork syscalls modern bpf
Andreagit97 4a456cb
fix: manage empty params in network syscalls
Andreagit97 678ca4d
fix: unify accept logic between 3 drivers
Andreagit97 db6a995
fix: process syscalls (clone, fork)
Andreagit97 b9ad5d7
fix: copy_file_range exit event
Andreagit97 b8d8224
fix: fchmod, fchmodat syscalls
Andreagit97 465063b
fix: ioctl exit event
Andreagit97 b392ee9
fix: mkdirat exit event
Andreagit97 eea3f75
fix: open_by_handle_at exit event
Andreagit97 42e0ad3
fix: pipe, pipe2 exit events
Andreagit97 a66095f
fix: setsockopt exit event
Andreagit97 a3f3a9b
new: support auto inject bpf/kmod
Andreagit97 0e72ec6
fix: unlink exit event
Andreagit97 4b9d635
fix: quotactl exit event
Andreagit97 e2501b9
fix: recvfrom exit event
Andreagit97 549c357
fix: send empty params when recvmsg syscall fails
Andreagit97 41b65b8
tests: assert current params and skip test if the underling logic is …
Andreagit97 25020d7
fix: send `sendmsg` empty params when the syscall fails
Andreagit97 a6fa170
fix: socketpair exit test
Andreagit97 41d8adb
fix: support `PPM_EXE_WRITABLE` in tests
Andreagit97 7eee00c
tests: call the bpf exit event from the child
Andreagit97 e5e62eb
update: enable again `sched_fork` and `sched_exec` tests
Andreagit97 79012d1
tests: fix `sched_proc_fork` test
Andreagit97 4250180
fix: adapt tests after rebase
Andreagit97 6852247
fix: quotactl enter event
Andreagit97 cfdeb1d
tests: add a new test to test reading phase from buffer
Andreagit97 eac71cd
tests: add check for unknown engine
Andreagit97 8b4b545
cleanup: rename test folder
Andreagit97 c8471d0
chore: adapt cmake to run tests also without the modern bpf probe
Andreagit97 71f1aab
ci: support drivers tests in CI
Andreagit97 180482a
new: add an helper for pushing empty params
Andreagit97 088802a
fix: add a missing header for epoll_create1
Andreagit97 c1d40a1
fix: prlimit64 enter event
Andreagit97 57b416c
tests: fix BPF tests on amazon linux 4.14
Andreagit97 298c51f
new(ci): test drivers also on ubuntu 20.04
Andreagit97 4ede2bf
fix(ci): add a cmake option to compile out drivers tests
Andreagit97 c63a53d
doc: fix README and a comment
Andreagit97 14c1dc7
cleanup
Andreagit97 34dd4e8
fix: reintroduce cmake option after rebase
Andreagit97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -38,6 +38,7 @@ option(USE_BUNDLED_DEPS "Enable bundled dependencies instead of using the system | |
option(MINIMAL_BUILD "Produce a minimal build with only the essential features (no eBPF probe driver, no kubernetes, no mesos, no marathon and no container metadata)" OFF) | ||
option(MUSL_OPTIMIZED_BUILD "Enable if you want a musl optimized build" OFF) | ||
option(USE_BUNDLED_DRIVER "Use the driver/ subdirectory in the build process (only available in Linux)" ON) | ||
option(ENABLE_DRIVERS_TESTS "Enable driver tests (bpf, kernel module, modern bpf)" OFF) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have to disable it by default otherwise some CI jobs that use system deps will break since the |
||
|
||
include(GNUInstallDirs) | ||
|
||
|
@@ -94,4 +95,8 @@ if(CREATE_TEST_TARGETS AND NOT WIN32) | |
) | ||
|
||
add_subdirectory(test/e2e) | ||
|
||
if(ENABLE_DRIVERS_TESTS) | ||
add_subdirectory(test/drivers) | ||
endif() | ||
endif() |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 is a test to check all drivers correctly start (only x86, it would be amazing to test also other archs)