summaryrefslogtreecommitdiffstats
path: root/tests/run-show-die-info.sh
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2005-11-16 01:33:38 +0000
committerRoland McGrath <[email protected]>2005-11-16 01:33:38 +0000
commit1b8b446a794ac4babfd687ca48de32e5f4aaa539 (patch)
treeb619a87dfff2b1fb667778f2699daa29a77f74c3 /tests/run-show-die-info.sh
parentfd856b5865368a894c178be0d2ad7285db5b3150 (diff)
2005-11-15 Roland McGrath <[email protected]>
* configure.ac: Add --enable-tests-rpath option. tests/ 2005-11-15 Roland McGrath <[email protected]> * 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-show-die-info.sh')
-rwxr-xr-xtests/run-show-die-info.sh14
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/run-show-die-info.sh b/tests/run-show-die-info.sh
index 3cdfae50..c730c1ec 100755
--- a/tests/run-show-die-info.sh
+++ b/tests/run-show-die-info.sh
@@ -11,17 +11,11 @@
# 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
-# Don't fail if we cannot decompress the file.
-bunzip2 -c $srcdir/testfile5.bz2 > testfile5 2>/dev/null || exit 77
+testfiles testfile5 testfile2
-# Don't fail if we cannot decompress the file.
-bunzip2 -c $srcdir/testfile2.bz2 > testfile2 2>/dev/null || exit 77
-
-./show-die-info testfile5 testfile2 > show-die-info.out
-
-diff -u show-die-info.out - <<"EOF"
+testrun_compare ./show-die-info testfile5 testfile2 <<\EOF
file: testfile5
New CU: off = 0, hsize = 11, ab = 0, as = 4, os = 4
DW_TAG_compile_unit
@@ -983,6 +977,4 @@ New CU: off = 2521, hsize = 11, ab = 267, as = 4, os = 4
Attrs : location name decl_file decl_line external type
EOF
-rm -f testfile2 testfile5 show-die-info.out
-
exit 0