libabigail/tests/Makefile.am
Dodji Seketeli 0951049924 Support reference types
* src/abg-ir.h (class reference_type_def, struct pointer_type_def)
	(struct reference_type_def): New declaration.
	(type_base_hash::operator(), type_decl_hash::operator())
	(scope_type_decl_hash::operator())
	(qualified_type_def_hash::operator()): Include the typeid name in
	the hash.
	* src/abg-ir.cc (reference_type_def::reference_type_def)
	(reference_type_def::operator==)
	(reference_type_def::get_pointed_to_type)
	(reference_type_def::is_lvalue)
	(reference_type_def::~reference_type_def): New definitions.
	(dynamic_type_hash::operator): Hash pointer_type_def and
	reference_type_def instances.
	* src/abg-reader.cc (read_context::finish_decl_creation)
	(read_context::finish_type_decl_creation)
	(handle_reference_type_def): New definitions.
	(read_file): Handle "reference-type-def" elements.
	(handle_type_decl, handle_namespace_decl)
	(handle_qualified_type_decl, handle_pointer_type_def): Use the new
	read_context::finish_type_decl_creation or
	read_context::finish_decl_creation.
	* src/abg-writer.cc (write_reference_type_def): New definition.
	(write_decl): Supporting writing a pointer to an instance of
	reference_type_def.
	* tests/data/test-read-write/test5.xml: New test file.
	* tests/test-read-write.cc: (De)Serialize it.
	* tests/Makefile.am: Add it to the build system.
2013-03-29 16:44:08 +01:00

29 lines
681 B
Makefile

h=$(abs_srcdir)
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=libtestutils.la $(top_builddir)/src/libabigail.la
AM_CPPFLAGS=-I${top_srcdir}/src
EXTRA_DIST= \
$(h)/data/test-read-write/test0.xml \
$(h)/data/test-read-write/test1.xml \
$(h)/data/test-read-write/test2.xml \
$(h)/data/test-read-write/test3.xml \
$(h)/data/test-read-write/test4.xml \
$(h)/data/test-read-write/test4.xml