aboutgitcodelistschat:MatrixIRC
path: root/tests/unit/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* test: fix test-error-checkAlice Frosi2023-07-141-2/+2
| | | | The error-check tests recompile and pass.
* test: fix filter testsAlice Frosi2023-07-041-1/+2
| | | | The filter tests recompile and pass.
* test: fix filter-build test and bugsAlice Frosi2023-07-031-11/+12
| | | | | | | | | | | | The tests for checking the filter build recompile and are successfull. Changes: - spotted a couple of bugs for adding the arguments in the filter - readded function `filter_flush_args` to flush_args; this is needed to distinguish when the arguments belong to the same block or are different entries to the same syscall - build the filter in a way that CMP_EQ corresponds to BPF_JEQ and we don't need to awkwardly negate the operations (still TODO for AND_EQ)
* treewide: Change to GPLv2, add LICENSES, missing headersStefano Brivio2023-06-041-1/+1
| | | | | | As discussed with Alice -- 'reuse lint' passes now. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
* ops: fix op_call and testsAlice Frosi2023-05-191-2/+3
|
* gluten: check limitsAlice Frosi2023-05-091-0/+10
| | | | | | Add bounds checking: - if offset is larger then the maximum per offset type - if memcpy is reading/writing inside gluten
* test: fix operationsAlice Frosi2023-05-081-4/+5
| | | | Adjust the tests after the refactoring and to use struct gluten_offset
* Refactor tests to use same struct arg as the filterAlice Frosi2023-04-121-2/+2
|
* Add other comparison operation for the BPF filterAlice Frosi2023-04-121-1/+4
|
* Refactor makefileAlice Frosi2023-04-061-12/+20
|
* tests: add tests for filtering the syscallsAlice Frosi2023-03-311-3/+13
|
* test: moving shareable function in a separate fileAlice Frosi2023-03-301-4/+4
|
* Create common function to install the BPF filterAlice Frosi2023-03-301-2/+2
|
* test: rename test-filter.c to test_filter_build.cAlice Frosi2023-03-301-4/+4
|
* test: fix cooker directoryAlice Frosi2023-03-291-1/+1
|
* tests: Adjust project directory and add license headersAlice Frosi2023-03-241-9/+42
|
* Rename actions to operationsAlice Frosi2023-02-221-9/+9
| | | | | Replace all the action related names to operations to make them more generic.
* tests: add test-action-call when running make test-unitAlice Frosi2023-02-211-2/+2
|
* Add test actionsAlice Frosi2023-02-151-1/+7
| | | | | | | | | Unit test for the action return, block and continue. The unit test installs a seccomp filter into the target for filter the getpid syscalls. Based on the action, the test checks the result of the syscall in the target to validate the correctness of the actions. Signed-off-by: Alice Frosi <afrosi@redhat.com>
* test: add unit test for act callAlice Frosi2023-02-151-1/+6
| | | | | | | | | Tests: - getppid syscall - read syscall without context - opena and read syscalls with a mount namespace Signed-off-by: Alice Frosi <afrosi@redhat.com>
* Add unit tests for the BPF filter generationAlice Frosi2022-12-211-0/+5
The test-filter verifies that the create_bfp_program builds the filter correctly. The test suite includes the tests for checking a filter with: * a single instruction * a single instruction with arguments * 2 instructions * multiple instructions * multiple instructions with arguments * multiple instructions with multiple instance of the same instruction Signed-off-by: Alice Frosi <afrosi@redhat.com>