mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-21 09:20:38 +00:00
170885cfcc
* src/abg-ir.h (class enum_type_decl, struct enum_type_decl_hash): New declarations. * src/abg-ir.cc (dynamic_type_hash::operator()): Add hashing support for enum_type_decl. (enum_type_decl::enum_type_decl) (enum_type_decl::get_underlying_type) (enum_type_decl::get_enumerators, enum_type_decl::~enum_type_decl) (enum_type_decl::operator==): New definitions. * src/abg-reader.cc (handle_enum_type_decl): New definition. (handle_element): Handle "enum-decl" element. * src/abg-writer.cc (write_enum_type_decl): New. (write_decl): Add support to serialize enum_type_decl. * tests/test-read-write.cc: De-serialize and serialize data/test-read-write/test6.xml back. * tests/data/test-read-write/test6.xml: New test input. * tests/Makefile.am: Add it to the distribution.
30 lines
719 B
Makefile
30 lines
719 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
|