libabigail/tests/Makefile.am
Dodji Seketeli fc27d10cee Debugged type-decl de-serialization
* src/abg-ir.cc (namespace_decl::~namespace_decl): Add this
	missing virtual constructor definition.
	* src/abg-reader.cc (read_context::{get_cur_decl,pop_decl}):
	Return a null pointer when the decls stack is empty.
	(update_read_context): Don't try to de-reference a NULL cur_decl.
	(read_input): Don't try to poke at file validity here.  What was I
	thinking.  Really test for advance_cursor to return 1, expressing
	success.
	* src/abg-reader.h (read_file):  Fix style.
	* Makefile.am: Add tests sub-directory.
	* configure.ac: Build with debugging-friendly options if the
	ABIGAIL_DEBUG env variable is set.  Generate tests/Makefile.
	* tests/Makefile.am: New file.
	* tests/test-read-write.cc: Likewise.
	* tests/test-utils.{h,cc}: Likewise.
	* tests/data/test-read-write/input0.xml: Likewise.
2013-03-21 23:57:22 +01:00

25 lines
514 B
Makefile

h=$(abs_srcdir)
hb=$(abs_builddir)
TESTS=runtestreadwrite
noinst_PROGRAMS= $(TESTS)
noinst_LTLIBRARIES = libtestutils.la
libtestutils_la_SOURCES=\
$(h)/test-utils.h \
$(h)/test-utils.cc
libtestutils_la_CXXFLAGS= \
-DABIGAIL_SRC_DIR=\"${top_srcdir}\" \
-DABIGAIL_BUILD_DIR=\"${top_builddir}\"
runtestreadwrite_SOURCES=$(h)/test-read-write.cc
runtestreadwrite_LDADD=$(hb)/libtestutils.la $(top_builddir)/src/libabigail.la
AM_CPPFLAGS=-I${top_srcdir}/src
EXTRA_DIST= \
$(h)/data/test-read-write/input0.xml