-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add new test suite for the modern probe
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
- Loading branch information
1 parent
45b5069
commit 29c2ed1
Showing
3 changed files
with
412 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Scap tests | ||
|
||
## Compile tests | ||
|
||
```bash | ||
cmake -DUSE_BUNDLED_DEPS=On -DBUILD_BPF=True -DCREATE_TEST_TARGETS=On -DBUILD_LIBSCAP_GVISOR=Off .. | ||
make unit-test-libscap | ||
``` | ||
|
||
You can add tests for specific engines using their Cmake options: | ||
- `-DBUILD_LIBSCAP_MODERN_BPF=On` | ||
- `-BUILD_LIBSCAP_GVISOR=On` | ||
|
||
## Run tests | ||
|
||
From the build directory: | ||
|
||
```bash | ||
sudo ./libscap/test/unit-test-libscap | ||
``` |
Oops, something went wrong.