summaryrefslogtreecommitdiff
path: root/tests/run-ranlib-test2.sh
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2005-11-16 01:33:38 +0000
committerRoland McGrath <roland@redhat.com>2005-11-16 01:33:38 +0000
commit1b8b446a794ac4babfd687ca48de32e5f4aaa539 (patch)
treeb619a87dfff2b1fb667778f2699daa29a77f74c3 /tests/run-ranlib-test2.sh
parentfd856b5865368a894c178be0d2ad7285db5b3150 (diff)
downloadelfutils-1b8b446a794ac4babfd687ca48de32e5f4aaa539.tar.gz
2005-11-15 Roland McGrath <roland@redhat.com>
* configure.ac: Add --enable-tests-rpath option. tests/ 2005-11-15 Roland McGrath <roland@redhat.com> * Makefile.am (BUILD_RPATH): New variable. [TESTS_RPATH] (AM_LDFLAGS): Pass -rpath option using that value. (tests_rpath): New variable. (installcheck-local): Pass it to test-wrapper.sh. * test-wrapper.sh: In "installed" format, take yes/no value for elfutils_tests_rpath, which export. When running a test binary for installcheck, exit 77. * test-subr.sh (installed_testrun): When running a test binary for installcheck, exit 77 if $elfutils_tests_rpath = yes.
Diffstat (limited to 'tests/run-ranlib-test2.sh')
-rwxr-xr-xtests/run-ranlib-test2.sh13
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/run-ranlib-test2.sh b/tests/run-ranlib-test2.sh
index 6eb62f2e..3693eb5e 100755
--- a/tests/run-ranlib-test2.sh
+++ b/tests/run-ranlib-test2.sh
@@ -11,19 +11,14 @@
# 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
+. $srcdir/test-subr.sh
original=${original:-testfile19}
indexed=${indexed:-testfile19.index}
-# Don't fail if we cannot decompress the file.
-bunzip2 -c $srcdir/$original.bz2 > $original 2>/dev/null || exit 77
+testfiles $original $indexed
-# Don't fail if we cannot decompress the file.
-bunzip2 -c $srcdir/$indexed.bz2 > $indexed 2>/dev/null || exit 77
-
-LD_LIBRARY_PATH=../libelf${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH \
- ../src/ranlib $original
+testrun ../src/ranlib $original
if test -z "$noindex"; then
# The data in the index is different. The reference file has it blanked
@@ -34,6 +29,4 @@ fi
cmp $original $indexed
-rm -f $original $indexed
-
exit 0