aboutgitcodelistschat:MatrixIRC
path: root/tests/unit/util.c
Commit message (Collapse)AuthorAgeFilesLines
* test: fix test-error-checkAlice Frosi2023-07-141-23/+29
| | | | The error-check tests recompile and pass.
* test: fix filter-build test and bugsAlice Frosi2023-07-031-2/+17
| | | | | | | | | | | | 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-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/+14
| | | | | | | 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-13/+57
|
* Clean-up error message and testAlice Frosi2023-05-111-0/+18
| | | | | | | | 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
* test: fix operationsAlice Frosi2023-05-081-3/+13
| | | | Adjust the tests after the refactoring and to use struct gluten_offset
* tests: clean-up created fileAlice Frosi2023-04-211-0/+1
|
* Fix testsAlice Frosi2023-04-131-18/+2
|
* Refactor tests to use same struct arg as the filterAlice Frosi2023-04-121-4/+20
|
* filter: define arg_cmp and arg_typeAlice Frosi2023-04-061-1/+1
|
* Add support for 64 bits argumentsAlice Frosi2023-04-061-3/+11
|
* filter: fix filterAlice Frosi2023-04-031-0/+15
| | | | | 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/+15
|
* test: moving shareable function in a separate fileAlice Frosi2023-03-301-0/+184