Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix formatting | Alice Frosi | 2023-02-22 | 1 | -29/+38 |
| | |||||
* | tests: add test for act_inject with the references | Alice Frosi | 2023-02-21 | 1 | -8/+35 |
| | |||||
* | actions: add reference for the fds | Alice Frosi | 2023-02-21 | 1 | -2/+4 |
| | |||||
* | actions: change pointer to offset | Alice Frosi | 2023-02-21 | 1 | -17/+5 |
| | |||||
* | tests: add act_call and saving return value | Alice Frosi | 2023-02-21 | 1 | -0/+22 |
| | |||||
* | test: add test for act_call | Alice Frosi | 2023-02-21 | 1 | -1/+23 |
| | |||||
* | test: add ignore_ret for checking test result | Alice Frosi | 2023-02-21 | 1 | -7/+9 |
| | |||||
* | actions: add data section | Alice Frosi | 2023-02-21 | 1 | -6/+6 |
| | |||||
* | tests: test reference for a_return | Alice Frosi | 2023-02-16 | 1 | -1/+33 |
| | | | | Signed-off-by: Alice Frosi <afrosi@redhat.com> | ||||
* | tests: fix the suite with the wrong test | Alice Frosi | 2023-02-16 | 1 | -1/+1 |
| | |||||
* | tests: separate every action in its own test case | Alice Frosi | 2023-02-16 | 1 | -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 actions | Alice Frosi | 2023-02-16 | 1 | -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 exit | Alice Frosi | 2023-02-16 | 1 | -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 set | Alice Frosi | 2023-02-15 | 1 | -1/+7 |
| | | | | Signed-off-by: Alice Frosi <afrosi@redhat.com> | ||||
* | Add test actions | Alice Frosi | 2023-02-15 | 1 | -0/+222 |
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> |