aboutgitcodelistschat:MatrixIRC
path: root/tests/unit/Makefile
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-05-05 17:04:15 +0200
committerAlice Frosi <afrosi@redhat.com>2023-05-08 14:47:22 +0200
commit384d09cd3d2e62bae19b59b615bc57b7a23d0b0a (patch)
tree3b6ba748a07d8e7e1b687314517e3379c59a69e3 /tests/unit/Makefile
parentc29157e78df7fa335c56d0d7f2cca7dc50bfffd6 (diff)
downloadseitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar
seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar.gz
seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar.bz2
seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar.lz
seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar.xz
seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.tar.zst
seitan-384d09cd3d2e62bae19b59b615bc57b7a23d0b0a.zip
test: fix operations
Adjust the tests after the refactoring and to use struct gluten_offset
Diffstat (limited to 'tests/unit/Makefile')
-rw-r--r--tests/unit/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/unit/Makefile b/tests/unit/Makefile
index ef702dc..202e198 100644
--- a/tests/unit/Makefile
+++ b/tests/unit/Makefile
@@ -2,6 +2,7 @@
# Copyright 2023 Red Hat GmbH
# Author: Alice Frosi <afrosi@redhat.com>
+MAIN_DIR := ../../
COMMON_DIR := ../../common
OP_DIR := ../../
COOKER_DIR := ../../cooker
@@ -19,8 +20,8 @@ HEADERS_OP_CALL := $(COMMON_DIR)/gluten.h $(OP_DIR)/operations.h
SRCS_OP_CALL := $(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
+ $(COMMON_DIR)/common.h testutil.h $(COMMON_DIR)/util.h
+SRCS_OP := $(COMMON_DIR)/common.c $(OP_DIR)/operations.c util.c $(COMMON_DIR)/util.c
TARGET := $(shell $(CC) -dumpmachine)
TARGET_ARCH := $(shell echo $(TARGET) | cut -f1 -d- | tr [A-Z] [a-z])
@@ -32,9 +33,9 @@ AUDIT_ARCH := $(shell echo $(AUDIT_ARCH) | sed 's/PPC64/PPC/')
AUDIT_ARCH := $(shell echo $(AUDIT_ARCH) | sed 's/PPCLE/PPC64LE/')
CFLAGS += -Wall -Wextra -pedantic
-CFLAGS += -I$(COMMON_DIR) -I$(OP_DIR) -I$(COOKER_DIR) -I$(DBG_DIR)
+CFLAGS += -I$(MAIN_DIR) -I$(OP_DIR) -I$(DBG_DIR)
CFLAGS += -lcheck
-CFLAGS += -DSEITAN_AUDIT_ARCH=AUDIT_ARCH_$(AUDIT_ARCH) -DTMP_DATA_SIZE=1000000
+CFLAGS += -DSEITAN_AUDIT_ARCH=AUDIT_ARCH_$(AUDIT_ARCH)
test: test-filter test-operations test-op-call