2013-08-27 11:38:10 +00:00
|
|
|
h=$(abs_srcdir)
|
|
|
|
|
2013-10-03 00:05:53 +00:00
|
|
|
TESTS= \
|
|
|
|
runtestreadwrite \
|
|
|
|
runtestwritereadarchive \
|
2014-01-07 14:34:42 +00:00
|
|
|
runtestreaddwarf \
|
2013-10-03 00:05:53 +00:00
|
|
|
runtestcorediff \
|
2013-11-29 12:49:50 +00:00
|
|
|
runtestbidiff \
|
2013-10-03 00:05:53 +00:00
|
|
|
runtestsvg \
|
2013-07-02 01:08:18 +00:00
|
|
|
runtestdot
|
2013-03-21 22:42:41 +00:00
|
|
|
|
2014-03-21 08:32:14 +00:00
|
|
|
noinst_PROGRAMS= $(TESTS) testirwalker testdiff2
|
2013-03-21 22:42:41 +00:00
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libtestutils.la
|
|
|
|
|
2013-08-27 13:18:59 +00:00
|
|
|
libtestutils_la_SOURCES= \
|
|
|
|
test-utils.h \
|
2013-05-03 13:28:10 +00:00
|
|
|
test-utils.cc
|
2013-03-21 22:42:41 +00:00
|
|
|
|
2013-08-29 15:08:47 +00:00
|
|
|
libtestutils_la_LIBADD=$(top_builddir)/tools/libtoolsutils.la
|
|
|
|
libtestutils_la_DEPENDENCIES=$(top_builddir)/tools/libtoolsutils.la
|
|
|
|
|
2013-03-21 22:42:41 +00:00
|
|
|
libtestutils_la_CXXFLAGS= \
|
2013-08-29 15:08:47 +00:00
|
|
|
-DABIGAIL_SRC_DIR=\"${abs_top_srcdir}\" \
|
|
|
|
-DABIGAIL_BUILD_DIR=\"${abs_top_builddir}\"
|
2013-03-21 22:42:41 +00:00
|
|
|
|
2013-08-27 11:38:10 +00:00
|
|
|
runtestreadwrite_SOURCES=$(h)/test-read-write.cc
|
2013-10-03 00:05:53 +00:00
|
|
|
runtestreadwrite_LDADD=libtestutils.la $(top_builddir)/src/libabigail.la
|
2013-03-21 22:42:41 +00:00
|
|
|
|
2013-08-27 13:18:59 +00:00
|
|
|
runtestwritereadarchive_SOURCES=$(h)/test-write-read-archive.cc
|
2013-08-29 15:08:47 +00:00
|
|
|
runtestwritereadarchive_LDADD= libtestutils.la $(top_builddir)/src/libabigail.la $(top_builddir)/tools/libtoolsutils.la
|
2013-08-27 13:18:59 +00:00
|
|
|
|
2014-01-07 14:34:42 +00:00
|
|
|
runtestreaddwarf_SOURCES=$(h)/test-read-dwarf.cc
|
|
|
|
runtestreaddwarf_LDADD=libtestutils.la $(top_builddir)/src/libabigail.la
|
|
|
|
|
2013-10-03 00:05:53 +00:00
|
|
|
runtestcorediff_SOURCES=$(h)/test-core-diff.cc
|
|
|
|
runtestcorediff_LDADD=libtestutils.la $(top_builddir)/src/libabigail.la
|
|
|
|
|
2013-11-29 12:49:50 +00:00
|
|
|
runtestbidiff_SOURCES = $(h)/test-bidiff.cc
|
|
|
|
runtestbidiff_LDADD = libtestutils.la $(top_builddir)/src/libabigail.la
|
|
|
|
|
2013-08-27 11:38:10 +00:00
|
|
|
runtestsvg_SOURCES=$(h)/test-svg.cc
|
2013-05-28 08:22:08 +00:00
|
|
|
runtestsvg_LDADD=$(top_builddir)/src/libabigail.la
|
|
|
|
|
2013-08-27 11:38:10 +00:00
|
|
|
runtestdot_SOURCES=$(h)/test-dot.cc
|
2013-07-02 01:08:18 +00:00
|
|
|
runtestdot_LDADD=$(top_builddir)/src/libabigail.la
|
|
|
|
|
2014-03-21 08:32:14 +00:00
|
|
|
testirwalker_SOURCES=$(h)/test-ir-walker.cc
|
|
|
|
testirwalker_LDADD=$(top_builddir)/src/libabigail.la
|
Implement a translation unit traversal API
* include/libabigail/abg-ir.h (struct ir_node_visitor, struct
traversable): New interfaces.
(translation_unit, scope_decl, type_decl, qualified_type_def)
(pointer_type_def, reference_type_def, enum_type_decl)
(typedef_decl, var_decl, function_decl, data_member)
(member_function, member_function_template)
(member_class_template): Implement the traversable interface,
overload the traversable::traverse pure virtual function.
* src/abg-ir.cc ({translation_unit, scope_decl, type_decl,
namespace_decl, qualified_type_def, pointer_type_def,
reference_type_def, enum_type_decl, typedef_decl, var_decl,
function_decl, class_decl::member_function, class_decl,
class_decl::data_member, class_decl::member_function_template,
class_decl::member_class_template, function_template_decl,
class_template_decl, }::traverse): Implement traversal.
(ir_node_visitor::visit): New method, overloaded for the types
above, which implement the traversable interface.
* tests/test-walker.cc: New test case program to showcase how to
use the new traversal API.
* tests/makefile.am: Add test-walker.cc to the build system.
2013-07-20 10:30:04 +00:00
|
|
|
|
2013-10-02 21:52:58 +00:00
|
|
|
testdiff2_SOURCES=$(h)/test-diff2.cc
|
|
|
|
testdiff2_LDADD=$(top_builddir)/src/libabigail.la
|
|
|
|
|
2013-08-29 15:08:47 +00:00
|
|
|
AM_CPPFLAGS=-I${abs_top_srcdir}/include \
|
|
|
|
-I${abs_top_builddir}/include -I${abs_top_srcdir}/tools
|
2013-05-28 08:22:08 +00:00
|
|
|
AM_CXXFLAGS="-std=gnu++11"
|
2013-03-21 22:42:41 +00:00
|
|
|
|
2013-08-29 15:08:47 +00:00
|
|
|
EXTRA_DIST= \
|
2013-05-03 13:28:10 +00:00
|
|
|
data/test-read-write/test0.xml \
|
|
|
|
data/test-read-write/test1.xml \
|
|
|
|
data/test-read-write/test2.xml \
|
|
|
|
data/test-read-write/test3.xml \
|
|
|
|
data/test-read-write/test4.xml \
|
|
|
|
data/test-read-write/test5.xml \
|
|
|
|
data/test-read-write/test6.xml \
|
|
|
|
data/test-read-write/test7.xml \
|
|
|
|
data/test-read-write/test8.xml \
|
|
|
|
data/test-read-write/test9.xml \
|
|
|
|
data/test-read-write/test10.xml \
|
|
|
|
data/test-read-write/test11.xml \
|
|
|
|
data/test-read-write/test12.xml \
|
|
|
|
data/test-read-write/test13.xml \
|
|
|
|
data/test-read-write/test14.xml \
|
|
|
|
data/test-read-write/test15.xml \
|
2013-08-27 13:18:59 +00:00
|
|
|
data/test-read-write/test16.xml \
|
2013-11-29 12:37:58 +00:00
|
|
|
data/test-read-write/test17.xml \
|
|
|
|
data/test-read-write/test18.xml \
|
|
|
|
data/test-read-write/test19.xml \
|
|
|
|
data/test-read-write/test20.xml \
|
|
|
|
data/test-read-write/test21.xml \
|
2013-08-27 13:18:59 +00:00
|
|
|
\
|
|
|
|
data/test-write-read-archive/test0.xml \
|
|
|
|
data/test-write-read-archive/test1.xml \
|
|
|
|
data/test-write-read-archive/test2.xml \
|
|
|
|
data/test-write-read-archive/test3.xml \
|
2013-11-29 12:49:50 +00:00
|
|
|
data/test-write-read-archive/test4.xml \
|
|
|
|
\
|
|
|
|
data/test-bidiff/test-enum0-v0.cc.bi \
|
|
|
|
data/test-bidiff/test-enum0-v1.cc.bi \
|
|
|
|
data/test-bidiff/test-enum0-report.txt \
|
|
|
|
data/test-bidiff/test-enum1-v0.cc.bi \
|
|
|
|
data/test-bidiff/test-enum1-v1.cc.bi \
|
|
|
|
data/test-bidiff/test-enum1-report.txt \
|
|
|
|
data/test-bidiff/test-qual-type0-v0.cc.bi \
|
|
|
|
data/test-bidiff/test-qual-type0-v1.cc.bi \
|
|
|
|
data/test-bidiff/test-qual-type0-report.txt \
|
|
|
|
data/test-bidiff/test-struct0-v0.cc.bi \
|
|
|
|
data/test-bidiff/test-struct0-v1.cc.bi \
|
|
|
|
data/test-bidiff/test-struct0-report.txt \
|
|
|
|
data/test-bidiff/test-struct1-v0.cc.bi \
|
|
|
|
data/test-bidiff/test-struct1-v1.cc.bi \
|
|
|
|
data/test-bidiff/test-struct1-report.txt \
|
|
|
|
data/test-bidiff/test-var0-v0.cc.bi \
|
|
|
|
data/test-bidiff/test-var0-v1.cc.bi \
|
2014-01-07 14:34:42 +00:00
|
|
|
data/test-bidiff/test-var0-report.txt \
|
|
|
|
\
|
|
|
|
data/test-read-dwarf/test0 \
|
|
|
|
data/test-read-dwarf/test0.abi \
|
|
|
|
data/test-read-dwarf/test0.cc \
|
|
|
|
data/test-read-dwarf/test1 \
|
|
|
|
data/test-read-dwarf/test1.abi \
|
|
|
|
data/test-read-dwarf/test1.cc
|
2013-05-03 13:28:10 +00:00
|
|
|
|
|
|
|
clean-local: clean-local-check
|
|
|
|
.PHONY: clean-local-check
|
|
|
|
|
|
|
|
clean-local-check:
|
2013-07-03 05:32:21 +00:00
|
|
|
-rm -rf ${builddir}/output *.svg *.gv
|