aboutgitcodelistschat:MatrixIRC
path: root/tests/unit/Makefile
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-02-14 09:12:19 +0100
committerAlice Frosi <afrosi@redhat.com>2023-02-15 14:03:42 +0100
commit8fc77732cbae451ea7b7fde88bef5f322167cd43 (patch)
tree22c5eab6b84f21e9535e0915f6e9653f6c0a6e0b /tests/unit/Makefile
parent7cb6760e3ebdc7a95f167bbeee793e8050215d2c (diff)
downloadseitan-8fc77732cbae451ea7b7fde88bef5f322167cd43.tar
seitan-8fc77732cbae451ea7b7fde88bef5f322167cd43.tar.gz
seitan-8fc77732cbae451ea7b7fde88bef5f322167cd43.tar.bz2
seitan-8fc77732cbae451ea7b7fde88bef5f322167cd43.tar.lz
seitan-8fc77732cbae451ea7b7fde88bef5f322167cd43.tar.xz
seitan-8fc77732cbae451ea7b7fde88bef5f322167cd43.tar.zst
seitan-8fc77732cbae451ea7b7fde88bef5f322167cd43.zip
Add test actions
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>
Diffstat (limited to 'tests/unit/Makefile')
-rw-r--r--tests/unit/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/unit/Makefile b/tests/unit/Makefile
index 5e7116b..a61f34c 100644
--- a/tests/unit/Makefile
+++ b/tests/unit/Makefile
@@ -5,6 +5,12 @@ test-filter: test-filter.c
$(CC) $(CFLAGS) -o test-filter ../../filter.c ../../disasm.c test-filter.c
./test-filter
-test-actions: test_action_call.c ../../actions.c ../../actions.h
+test-action-call: test_action_call.c ../../actions.c ../../actions.h
$(CC) $(CFLAGS) -o test-action-call ../../actions.c test_action_call.c
./test-action-call
+
+test-actions: test_actions.c ../../actions.c ../../actions.h ../../common.h
+ $(CC) $(CFLAGS) -o test-actions \
+ ../../common.c ../../actions.c \
+ test_actions.c
+ ./test-actions