summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-07-06 15:42:53 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-07-06 15:42:53 (EDT)
commit454e3623852cbc8b2bb70796cd960b8ab5084502 (patch)
treec13c6e9fb05d54201bdb5a95569e8d5552097950
parentd26a91280286131ba4781f4b65158f085e1259ba (diff)
tests: Update to use common code
-rw-r--r--tests/local.mk8
-rw-r--r--tests/mode.c4
2 files changed, 7 insertions, 5 deletions
diff --git a/tests/local.mk b/tests/local.mk
index e61da9c..0045124 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -1,10 +1,12 @@
check_PROGRAMS = \
%reldir%/mode
tests_mode_SOURCES = \
- helpers/defs.h \
- helpers/mode.c \
- helpers/mode.h \
+ common/defs.h \
+ common/mode.c \
+ common/mode.h \
%reldir%/mode.c
+tests_mode_CPPFLAGS = \
+ -I"$(top_srcdir)/common"
TESTS = \
%reldir%/version.sh \
%reldir%/mode.sh \
diff --git a/tests/mode.c b/tests/mode.c
index 972401d..850209f 100644
--- a/tests/mode.c
+++ b/tests/mode.c
@@ -20,8 +20,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
-#include "../helpers/defs.h"
-#include "../helpers/mode.h"
+#include "defs.h"
+#include "mode.h"
static unsigned int _test_num = 0U;