From 83c4349e79252f476912d0305ac0e33828d6d54f Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Mon, 22 May 2017 22:04:03 -0400 Subject: build: Add a test directory Add a test directory to host future unit tests. Change-Id: I5072cb3055386f7b1718edc45241c723d9e63a54 Signed-off-by: Brad Bishop --- src/Makefile.am | 2 ++ src/test/.gitignore | 2 ++ src/test/Makefile.am | 13 +++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 src/test/.gitignore create mode 100644 src/test/Makefile.am (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 3fc5554..0dfe63b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -29,3 +29,5 @@ generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES) -d ${srcdir}/example \ -o ${builddir}/$@ \ generate-cpp + +SUBDIRS = . test diff --git a/src/test/.gitignore b/src/test/.gitignore new file mode 100644 index 0000000..7e563b8 --- /dev/null +++ b/src/test/.gitignore @@ -0,0 +1,2 @@ +*.log +*.trs diff --git a/src/test/Makefile.am b/src/test/Makefile.am new file mode 100644 index 0000000..c44bffa --- /dev/null +++ b/src/test/Makefile.am @@ -0,0 +1,13 @@ +include $(top_srcdir)/vars.mk + +AM_CPPFLAGS = -iquote$(top_srcdir)/src +gtest_cflags = $(PTHREAD_CFLAGS) +gtest_ldadd = -lgtest -lgtest_main -lgmock $(PTHREAD_LIBS) + +TEMPLATESEARCH+=${srcdir}/templates + +check_PROGRAMS = +BUILT_SOURCES = +CLEANFILES = + +TESTS = $(check_PROGRAMS) -- cgit v1.2.1