mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-21 09:20:38 +00:00
a5a6fd8fce
* src/abg-ir.cc (dynamic_type_hash::operator()): Handle hashing of a pointer to an instance of typedef_decl. (typedef_decl::typedef_decl, typedef_decl::operator==) (typedef_decl::operator==, typedef_decl::get_underlying_type) (typedef_decl::~typedef_decl): New definitions. * src/abg-ir.h (class typedef_decl, struct typedef_decl_hash): New declarations. * src/abg-reader.cc (handle_typedef_decl): New definition. (handle_element): Handle de-serialization of typedef-decl element. * src/abg-writer.cc (write_typedef_decl): New definition. (write_decl): Handle serialization of an instance of typedef_decl. * tests/data/test-read-write/test7.xml: New test. * tests/Makefile.am: Add it to the distribution. * tests/test-read-write.cc: De-serialize the content of the new test, serialize it back and diff both.
31 lines
757 B
Makefile
31 lines
757 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/test5.xml \
|
|
$(h)/data/test-read-write/test6.xml \
|
|
$(h)/data/test-read-write/test7.xml
|