aboutgitcodelistschat:MatrixIRC
path: root/tests/unit/Makefile
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-03-30 13:55:48 +0200
committerAlice Frosi <afrosi@redhat.com>2023-03-30 16:17:47 +0200
commit548a225fb616ee66afb8411f282d44148f67898c (patch)
tree688cc5a96db4d15e98e1504511fb815f2aad6b01 /tests/unit/Makefile
parentfa00aa6b11a9a773bdb0b11c306d2e6936ba5862 (diff)
downloadseitan-548a225fb616ee66afb8411f282d44148f67898c.tar
seitan-548a225fb616ee66afb8411f282d44148f67898c.tar.gz
seitan-548a225fb616ee66afb8411f282d44148f67898c.tar.bz2
seitan-548a225fb616ee66afb8411f282d44148f67898c.tar.lz
seitan-548a225fb616ee66afb8411f282d44148f67898c.tar.xz
seitan-548a225fb616ee66afb8411f282d44148f67898c.tar.zst
seitan-548a225fb616ee66afb8411f282d44148f67898c.zip
test: moving shareable function in a separate file
Diffstat (limited to 'tests/unit/Makefile')
-rw-r--r--tests/unit/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/Makefile b/tests/unit/Makefile
index aad8549..1c3a413 100644
--- a/tests/unit/Makefile
+++ b/tests/unit/Makefile
@@ -13,9 +13,9 @@ HEADERS_FILTER := $(COOKER_DIR)/filter.h $(DBG_DIR)/disasm.h $(COMMON_DIR)/commo
HEADERS_OP_CALL := $(COMMON_DIR)/gluten.h $(OP_DIR)/operations.h
SRCS_OP_CALL := $(OP_DIR)/operations.c
-HEADERS_OP_CALL := $(COMMON_DIR)/gluten.h $(OP_DIR)/operations.h \
- $(COMMON_DIR)/common.h
-SRCS_OP := $(COMMON_DIR)/common.c $(OP_DIR)/operations.c
+HEADERS_OP := $(COMMON_DIR)/gluten.h $(OP_DIR)/operations.h \
+ $(COMMON_DIR)/common.h testutil.h
+SRCS_OP := $(COMMON_DIR)/common.c $(OP_DIR)/operations.c util.c
TARGET := $(shell $(CC) -dumpmachine)
TARGET_ARCH := $(shell echo $(TARGET) | cut -f1 -d- | tr [A-Z] [a-z])
@@ -43,7 +43,7 @@ test-op-call: test_op_call.c $(SRCS_OP_CALL) $(HEADERS_OP_CALL)
test_op_call.c
./test-op-call
-test-operations: test_operations.c $(SRCS_OP) $(HEADERS_OP_CALL)
+test-operations: test_operations.c $(SRCS_OP) $(HEADERS_OP)
$(CC) $(CFLAGS) -o test-operations $(SRCS_OP) \
test_operations.c
./test-operations