103333823c75a1c1887e923828113a1b0fd12020cElliott Hughes#! /bin/bash 203333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# Copyright (C) 2013 Red Hat, Inc. 303333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# This file is part of elfutils. 403333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# 503333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# This file is free software; you can redistribute it and/or modify 603333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# it under the terms of the GNU General Public License as published by 703333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# the Free Software Foundation; either version 3 of the License, or 803333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# (at your option) any later version. 903333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# 1003333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# elfutils is distributed in the hope that it will be useful, but 1103333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# WITHOUT ANY WARRANTY; without even the implied warranty of 1203333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1303333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# GNU General Public License for more details. 1403333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# 1503333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# You should have received a copy of the GNU General Public License 1603333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# along with this program. If not, see <http://www.gnu.org/licenses/>. 1703333823c75a1c1887e923828113a1b0fd12020cElliott Hughes 1803333823c75a1c1887e923828113a1b0fd12020cElliott Hughes. $srcdir/backtrace-subr.sh 1903333823c75a1c1887e923828113a1b0fd12020cElliott Hughes 2003333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# This test really cannot be run under valgrind, it tries to introspect 2103333823c75a1c1887e923828113a1b0fd12020cElliott Hughes# its own maps and registers and will find valgrinds instead. 2203333823c75a1c1887e923828113a1b0fd12020cElliott Hughesunset VALGRIND_CMD 2303333823c75a1c1887e923828113a1b0fd12020cElliott Hughes 2403333823c75a1c1887e923828113a1b0fd12020cElliott Hughestempfiles data.{bt,err} 2503333823c75a1c1887e923828113a1b0fd12020cElliott Hughes(set +ex; testrun ${abs_builddir}/backtrace-data 1>data.bt 2>data.err; true) 2603333823c75a1c1887e923828113a1b0fd12020cElliott Hughescat data.{bt,err} 2703333823c75a1c1887e923828113a1b0fd12020cElliott Hughescheck_unsupported data.err data 2803333823c75a1c1887e923828113a1b0fd12020cElliott Hughescheck_all data.{bt,err} data 29