summaryrefslogtreecommitdiff
path: root/tests/run-test-iterators.sh
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2015-04-03 10:11:34 +0200
committerPetr Machata <pmachata@redhat.com>2015-04-14 16:35:10 +0200
commit205c1b156380e060ae49ef0cd1b108744286efd5 (patch)
tree20819fc6751902bf98f5fc88a022cbce5178bdc8 /tests/run-test-iterators.sh
parent00cbd21384d3a77637200496c9c3bfb4c54f7a4a (diff)
downloadelfutils-205c1b156380e060ae49ef0cd1b108744286efd5.tar.gz
Add C++ iterators
- Add unit_iterator, child_iterator, die_tree_iterator and attr_iterator for libdw, and dwfl_module_iterator for libdwfl. - The code is shipped in a new library called libdwpp. Signed-off-by: Petr Machata <pmachata@redhat.com>
Diffstat (limited to 'tests/run-test-iterators.sh')
-rwxr-xr-xtests/run-test-iterators.sh52
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/run-test-iterators.sh b/tests/run-test-iterators.sh
new file mode 100755
index 00000000..69425704
--- /dev/null
+++ b/tests/run-test-iterators.sh
@@ -0,0 +1,52 @@
+#! /bin/sh
+# Copyright (C) 2015 Red Hat, Inc.
+# This file is part of elfutils.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# elfutils is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. $srcdir/test-subr.sh
+
+testfiles testfile39 testfile-debug-types
+
+testrun_compare ${abs_top_builddir}/tests/test-iterators testfile39 <<\EOF
+0xb
+0x9e
+0x135
+0x1c8
+0 7
+0 7
+0 7
+0 7
+EOF
+
+testrun_compare ${abs_top_builddir}/tests/test-iterators testfile-debug-types <<\EOF
+0xb
+0x17
+0x5a
+4 6
+0 9
+0 3
+0 6
+0 6
+2 3
+1 4
+0 2
+0 5
+1 3
+2 4
+0 3
+0 5
+EOF
+
+exit 0