aboutgitcodelistschat:MatrixIRC
path: root/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* gluten: check limitsAlice Frosi2023-05-093-0/+130
| | | | | | 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-085-274/+244
| | | | Adjust the tests after the refactoring and to use struct gluten_offset
* test: uncomment testAlice Frosi2023-04-211-1/+1
|
* test: test various values for op_cmp_typeAlice Frosi2023-04-211-8/+83
|
* tests: clean-up created fileAlice Frosi2023-04-212-1/+3
|
* operation: remove pid and idAlice Frosi2023-04-211-23/+23
| | | | | Pid and id are reduandant fields as the information are already included in the seccomp request
* test: fix test filter with the new filter buildAlice Frosi2023-04-181-94/+101
|
* test: add test for and_neAlice Frosi2023-04-181-10/+38
|
* test: add unit test for and operationAlice Frosi2023-04-181-0/+66
|
* 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
|
* 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
* 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>