aboutgitcodelistschat:MatrixIRC
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add test for BPF filter comparison operationsAlice Frosi2023-04-141-28/+110
|
* Fix testsAlice Frosi2023-04-135-29/+35
|
* Refactor tests to use same struct arg as the filterAlice Frosi2023-04-126-43/+45
|
* Add other comparison operation for the BPF filterAlice Frosi2023-04-122-4/+11
|
* filter: define arg_cmp and arg_typeAlice Frosi2023-04-064-36/+40
|
* Refactor makefileAlice Frosi2023-04-061-12/+20
|
* Add support for 64 bits argumentsAlice Frosi2023-04-064-17/+101
|
* fix filter testAlice Frosi2023-04-032-85/+72
|
* filter: fix filterAlice Frosi2023-04-033-22/+68
| | | | | An additional notification is need either when we jump from an instruction without arguments then at the end of the argument checks.
* tests: add tests for filtering the syscallsAlice Frosi2023-03-314-3/+122
|
* test: moving shareable function in a separate fileAlice Frosi2023-03-304-176/+238
|
* Create common function to install the BPF filterAlice Frosi2023-03-302-16/+5
|
* test: rename test-filter.c to test_filter_build.cAlice Frosi2023-03-302-4/+4
|
* test: fix filter orderAlice Frosi2023-03-291-43/+60
|
* test: fix cooker directoryAlice Frosi2023-03-291-1/+1
|
* Add license header to the integration testsAlice Frosi2023-03-241-0/+7
|
* tests: Adjust project directory and add license headersAlice Frosi2023-03-244-16/+64
|
* tests: add unit tests for op_resolvedfdAlice Frosi2023-03-151-1/+77
|
* tests: add test for op_cmpAlice Frosi2023-02-271-1/+63
|
* test: fix arguments and offsetsAlice Frosi2023-02-271-6/+7
|
* seitan: copy immediate args with op_copyAlice Frosi2023-02-271-3/+10
|
* tests: add test for op_copyAlice Frosi2023-02-231-0/+64
| | | | | | The target process tries to perform a connect syscall and we need to check that the struct sockaddr_un is correctly copied from the memory of the target process
* tests: generalize the syscall of the targetAlice Frosi2023-02-231-12/+19
| | | | | Refactor the tests to pass the filtered syscall and setting the argument into the shared struct.
* test: fix check of a_blockAlice Frosi2023-02-231-1/+5
|
* tests: adjust do_operations signatureAlice Frosi2023-02-231-7/+7
| | | | Signed-off-by: Alice Frosi <afrosi@redhat.com>
* Rename actions to operationsAlice Frosi2023-02-223-70/+70
| | | | | Replace all the action related names to operations to make them more generic.
* fix formattingAlice Frosi2023-02-222-101/+108
|
* tests: add test for act_inject with the referencesAlice Frosi2023-02-211-8/+35
|
* actions: add reference for the fdsAlice Frosi2023-02-211-2/+4
|
* actions: change pointer to offsetAlice Frosi2023-02-211-17/+5
|
* tests: add act_call and saving return valueAlice Frosi2023-02-211-0/+22
|
* tests: add test-action-call when running make test-unitAlice Frosi2023-02-211-2/+2
|
* test: add test for act_callAlice Frosi2023-02-211-1/+23
|
* test: add ignore_ret for checking test resultAlice Frosi2023-02-211-7/+9
|
* actions: add data sectionAlice Frosi2023-02-211-6/+6
|
* tests: remove unused variablesAlice Frosi2023-02-211-7/+2
|
* tests: test reference for a_returnAlice Frosi2023-02-161-1/+33
| | | | Signed-off-by: Alice Frosi <afrosi@redhat.com>
* tests: fix the suite with the wrong testAlice Frosi2023-02-161-1/+1
|
* tests: separate every action in its own test caseAlice Frosi2023-02-161-18/+33
| | | | | | Separating every action is in a test case enable filtering using check env variable. Like: sudo -E CK_RUN_CASE="a_inject_a" tests/unit/test-actions
* test: add howto setup integration testsAlice Frosi2023-02-162-0/+60
| | | | Signed-off-by: Alice Frosi <afrosi@redhat.com>
* tests: add tests for inject actionsAlice Frosi2023-02-161-11/+89
| | | | | | | | The inject actions install a fd into the target. The tests for those actions create a temporary file and install the file descriptor into the target, and check for the existance of the new fd. Signed-off-by: Alice Frosi <afrosi@redhat.com>
* test: interrupt test on target process exitAlice Frosi2023-02-161-0/+13
| | | | | | | Catch if the target process has exited due to an error and interrupt the tests. Signed-off-by: Alice Frosi <afrosi@redhat.com>
* Unmap at struct on teardown if setAlice Frosi2023-02-151-1/+7
| | | | Signed-off-by: Alice Frosi <afrosi@redhat.com>
* Add test actionsAlice Frosi2023-02-152-1/+229
| | | | | | | | | 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-152-1/+231
| | | | | | | | | Tests: - getppid syscall - read syscall without context - opena and read syscalls with a mount namespace Signed-off-by: Alice Frosi <afrosi@redhat.com>
* integration: create integration testsAlice Frosi2023-02-151-0/+131
| | | | | | | | | | | | | Create initial pytest suite for testing seitan and seitan-eater setup. The test suite includes: - 'test_simple' verifies the basic functionalities and the synchronization between seitan and the eater - 'test_restart_seitan' verifies when steitan needs to restart Seitan and eater are deployed in a container to control the environment where they run. Signed-off-by: Alice Frosi <afrosi@redhat.com>
* Add unit tests for the BPF filter generationAlice Frosi2022-12-212-0/+379
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>