summaryrefslogtreecommitdiff
path: root/42sh/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to '42sh/tests/Makefile.am')
-rw-r--r--42sh/tests/Makefile.am19
1 files changed, 19 insertions, 0 deletions
diff --git a/42sh/tests/Makefile.am b/42sh/tests/Makefile.am
new file mode 100644
index 0000000..245ea6e
--- /dev/null
+++ b/42sh/tests/Makefile.am
@@ -0,0 +1,19 @@
+bin_PROGRAMS = tests
+
+tests_SOURCES = $(top_srcdir)/tests/unit/tests_lexer.c \
+ $(top_srcdir)/src/helper.c
+
+tests_CFLAGS = -Wall -Wextra -Wvla -std=c99 -pedantic # -Werror
+tests_CPPFLAGS = -I$(top_srcdir)/src
+
+tests_LDADD = $(top_srcdir)/src/lexer/liblexer.a \
+ $(top_srcdir)/src/utils/libutils.a \
+ $(top_srcdir)/src/parser/libparser.a \
+ $(top_srcdir)/src/IO/libIO.a \
+ $(top_srcdir)/src/ast/libast.a \
+ $(top_srcdir)/src/exec/libeval.a \
+ $(top_srcdir)/src/builtins/libbuiltins.a \
+ -lcriterion
+
+check-local:
+ $(top_srcdir)/tests/wrapper.sh