diff options
| author | Ulrich Drepper <[email protected]> | 2005-07-26 05:00:05 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2005-07-26 05:00:05 +0000 |
| commit | b08d5a8fb42f4586d756068065186b5af7e48dad (patch) | |
| tree | 9f05f86be7877ed461b4dc05f53b29ea4fc0d2a1 /tests/run-elflint-test.sh | |
Adjust for monotone.
Diffstat (limited to 'tests/run-elflint-test.sh')
| -rw-r--r-- | tests/run-elflint-test.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/run-elflint-test.sh b/tests/run-elflint-test.sh new file mode 100644 index 00000000..f008ccdc --- /dev/null +++ b/tests/run-elflint-test.sh @@ -0,0 +1,28 @@ +#! /bin/sh +# Copyright (C) 2005 Red Hat, Inc. +# Written by Ulrich Drepper <[email protected]>, 2005. +# +# This program is Open Source software; you can redistribute it and/or +# modify it under the terms of the Open Software License version 1.0 as +# published by the Open Source Initiative. +# +# You should have received a copy of the Open Software License along +# with this program; if not, you may obtain a copy of the Open Software +# License version 1.0 from http://www.opensource.org/licenses/osl.php or +# by writing the Open Source Initiative c/o Lawrence Rosen, Esq., +# 3001 King Ranch Road, Ukiah, CA 95482. +set -e + +# Don't fail if we cannot decompress the file. +bunzip2 -c $srcdir/testfile18.bz2 > testfile18 2>/dev/null || exit 0 + +LD_LIBRARY_PATH=../libebl:../libelf${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH \ + ../src/elflint --gnu testfile18 >& elflint-test.out || : + +diff -u elflint-test.out - <<"EOF" +section [ 8] '.rela.dyn': relocation 1: copy relocation against symbol of type FUNC +EOF + +rm -f testfile18 elflint-test.out + +exit 0 |
