aboutgitcodelistschat:MatrixIRC
path: root/tests/unit/testutil.h
Commit message (Collapse)AuthorAgeFilesLines
* treewide: Change to GPLv2, add LICENSES, missing headersStefano Brivio2023-06-041-0/+5
| | | | | | As discussed with Alice -- 'reuse lint' passes now. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
* filter: adjust filter buildAlice Frosi2023-05-191-0/+1
| | | | | | | Add filter_flush_args() to flush the arguments when finish to add the syscall arguments. Fixed test compilation after refactoring.
* ops: fix op_call and testsAlice Frosi2023-05-191-1/+9
|
* filter: refactoring filterAlice Frosi2023-05-171-1/+2
| | | | | | | | | | | Attempt to simplify the filter build: - storing all the bpf_args in a common array and saving the index of each entry in filter_input - added new flag to filter_add_arg for append an argument to an entry - split large loop in filter_build in multiple functions - adjust and refactor tests/units/test_filter The tests in test_filter_build.c still need to be fixed
* Adjust op_call with gluten_offsetAlice Frosi2023-05-111-1/+1
|
* Clean-up error message and testAlice Frosi2023-05-111-1/+6
| | | | | | | | Refactoring error messages: - standardize error messages and functions - return on error instead of exit - test error when target doesn't exist - include ability to capture stderr and stdout in the tests
* gluten: check limitsAlice Frosi2023-05-091-0/+2
| | | | | | 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-3/+37
| | | | Adjust the tests after the refactoring and to use struct gluten_offset
* Fix testsAlice Frosi2023-04-131-0/+1
|
* Refactor tests to use same struct arg as the filterAlice Frosi2023-04-121-3/+1
|
* filter: define arg_cmp and arg_typeAlice Frosi2023-04-061-1/+2
|
* Add support for 64 bits argumentsAlice Frosi2023-04-061-1/+6
|
* filter: fix filterAlice Frosi2023-04-031-0/+1
| | | | | 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-311-0/+1
|
* test: moving shareable function in a separate fileAlice Frosi2023-03-301-0/+45