aboutgitcodelistschat:MatrixIRC
path: root/tests/unit/Makefile
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-03-31 11:10:42 +0200
committerAlice Frosi <afrosi@redhat.com>2023-03-31 11:48:03 +0200
commitaeb7573732347cd0bbf0e3d7e560a53f875313cf (patch)
treeba1f0c53a0d7d8ac5a9a2644257dd7de6383e7b8 /tests/unit/Makefile
parent548a225fb616ee66afb8411f282d44148f67898c (diff)
downloadseitan-aeb7573732347cd0bbf0e3d7e560a53f875313cf.tar
seitan-aeb7573732347cd0bbf0e3d7e560a53f875313cf.tar.gz
seitan-aeb7573732347cd0bbf0e3d7e560a53f875313cf.tar.bz2
seitan-aeb7573732347cd0bbf0e3d7e560a53f875313cf.tar.lz
seitan-aeb7573732347cd0bbf0e3d7e560a53f875313cf.tar.xz
seitan-aeb7573732347cd0bbf0e3d7e560a53f875313cf.tar.zst
seitan-aeb7573732347cd0bbf0e3d7e560a53f875313cf.zip
tests: add tests for filtering the syscalls
Diffstat (limited to 'tests/unit/Makefile')
-rw-r--r--tests/unit/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/unit/Makefile b/tests/unit/Makefile
index 1c3a413..aeaf6ae 100644
--- a/tests/unit/Makefile
+++ b/tests/unit/Makefile
@@ -7,8 +7,13 @@ OP_DIR := ../../
COOKER_DIR := ../../cooker
DBG_DIR := ../../debug
-SRCS_FILTER := $(COOKER_DIR)/filter.c $(DBG_DIR)/disasm.c $(COMMON_DIR)/common.c
-HEADERS_FILTER := $(COOKER_DIR)/filter.h $(DBG_DIR)/disasm.h $(COMMON_DIR)/common.h
+SRCS_FILTER_BUILD := $(COOKER_DIR)/filter.c $(DBG_DIR)/disasm.c $(COMMON_DIR)/common.c
+HEADERS_FILTER_BUILD := $(COOKER_DIR)/filter.h $(DBG_DIR)/disasm.h $(COMMON_DIR)/common.h
+
+SRCS_FILTER := $(COOKER_DIR)/filter.c $(COMMON_DIR)/common.c util.c \
+ $(DBG_DIR)/disasm.c
+HEADERS_FILTER := $(COOKER_DIR)/filter.h $(COMMON_DIR)/common.h \
+ $(DBG_DIR)/disasm.h testutil.h
HEADERS_OP_CALL := $(COMMON_DIR)/gluten.h $(OP_DIR)/operations.h
SRCS_OP_CALL := $(OP_DIR)/operations.c
@@ -33,11 +38,16 @@ CFLAGS += -DSEITAN_AUDIT_ARCH=AUDIT_ARCH_$(AUDIT_ARCH) -DTMP_DATA_SIZE=1000
test: test-filter test-operations test-op-call
-test-filter-build: test_filter_build.c $(SRCS_FILTER) $(HEADERS_FILTER)
+test-filter-build: test_filter_build.c $(SRCS_FILTER_BUILD) $(HEADERS_FILTER_BUILD)
$(CC) $(CFLAGS) -o test-filter-build $(SRCS_FILTER) \
test_filter_build.c
./test-filter-build
+test-filter: test_filter.c $(SRCS_FILTER) $(HEADERS_FILTER)
+ $(CC) $(CFLAGS) -o test-filter $(SRCS_FILTER) \
+ test_filter.c
+ ./test-filter
+
test-op-call: test_op_call.c $(SRCS_OP_CALL) $(HEADERS_OP_CALL)
$(CC) $(CFLAGS) -o test-op-call $(SRCS_OP_CALL) \
test_op_call.c