From d8820f8f1016073bc7b9e79169fdeb3852c5493e Mon Sep 17 00:00:00 2001 From: Tadas Vilkeliskis Date: Sun, 27 Oct 2013 00:53:15 -0400 Subject: support make test --- Makefile.am | 3 +++ tests/Makefile.am | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 4dc0a2c..f1a6938 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,3 +7,6 @@ DIST_SUBDIRS = src EXTRA_DIST = \ autogen.sh \ LICENSE + +test: all + cd tests ; $(MAKE) check diff --git a/tests/Makefile.am b/tests/Makefile.am index 2b70ec5..1cc23f1 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,8 +1,10 @@ AM_CPPFLAGS = -I$(top_srcdir)/src -bin_PROGRAMS = test +noinst_PROGRAMS = test test_LDFLAGS = -lcheck test_SOURCES = ../src/csv_parser.c \ ../src/csv_parser.h \ main.c + +TESTS = test -- cgit v1.2.3