#!/bin/sh
# Copyright (C) 2019 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 .
. $srcdir/test-subr.sh
core_files=\
"testfile_aarch64_core \
testfile-backtrace-demangle.core \
testfiledwarfinlines.core \
testfile_i686_core \
testfile-m68k-core \
testfile-riscv64-core \
backtrace.aarch64.core \
backtrace.i386.core \
backtrace.ppc.core \
backtrace.s390.core"
testfiles $core_files
echo "elfclassify --core"
testrun ${abs_top_builddir}/src/elfclassify --core $core_files
testrun_compare ${abs_top_builddir}/src/elfclassify --core --print $core_files <