diff options
author | Alice Frosi <afrosi@redhat.com> | 2022-12-21 12:08:44 +0100 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2022-12-21 15:00:14 +0100 |
commit | 751cbf21e738eb4bbc593da1d461862abfafa6be (patch) | |
tree | 0a23fd4677e9d6afade48f23198ae18896dea82b /Makefile | |
parent | ca4c9f229aa46d7983302323d7468cabde55995c (diff) | |
download | seitan-751cbf21e738eb4bbc593da1d461862abfafa6be.tar seitan-751cbf21e738eb4bbc593da1d461862abfafa6be.tar.gz seitan-751cbf21e738eb4bbc593da1d461862abfafa6be.tar.bz2 seitan-751cbf21e738eb4bbc593da1d461862abfafa6be.tar.lz seitan-751cbf21e738eb4bbc593da1d461862abfafa6be.tar.xz seitan-751cbf21e738eb4bbc593da1d461862abfafa6be.tar.zst seitan-751cbf21e738eb4bbc593da1d461862abfafa6be.zip |
Add unit tests for the BPF filter generation
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -12,6 +12,8 @@ CFLAGS += -DBUILD_TRANSFORM_OUT=\"t.out\" CFLAGS += -DSEITAN_AUDIT_ARCH=AUDIT_ARCH_$(AUDIT_ARCH) CFLAGS += -Wall -Wextra -pedantic +export CFLAGS + all: t.out seitan-loader seitan t.out: qemu_filter build @@ -35,6 +37,9 @@ filter.h: qemu_filter numbers.h: ./nr_syscalls.sh +test-unit: + $(MAKE) -C tests/unit + transform.h: qemu_filter ./transform.sh qemu_filter |