summaryrefslogtreecommitdiff
path: root/tests/run-strip-test.sh
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2007-04-25 03:09:33 +0000
committerRoland McGrath <roland@redhat.com>2007-04-25 03:09:33 +0000
commit4be1524398af8e24011cfdfa77c66832f8654a56 (patch)
tree84d4745346b459516ec67743a1b86b47793f146f /tests/run-strip-test.sh
parent89d6b4c552a469482d2a358fb492d39eb22beb13 (diff)
downloadelfutils-4be1524398af8e24011cfdfa77c66832f8654a56.tar.gz
2007-04-24 Roland McGrath <roland@redhat.com>
* run-strip-test.sh: When we saved the debug info, test unstrip too.
Diffstat (limited to 'tests/run-strip-test.sh')
-rwxr-xr-xtests/run-strip-test.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/run-strip-test.sh b/tests/run-strip-test.sh
index 656e449b..9a82d53d 100755
--- a/tests/run-strip-test.sh
+++ b/tests/run-strip-test.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2003, 2005 Red Hat, Inc.
+# Copyright (C) 1999, 2000, 2002, 2003, 2005, 2007 Red Hat, Inc.
# This file is part of Red Hat elfutils.
# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
#
@@ -32,7 +32,7 @@ debugout=${debugfile:+-f testfile.debug.temp -F $debugfile}
testfiles $original $stripped $debugfile
-tempfiles testfile.temp testfile.debug.temp
+tempfiles testfile.temp testfile.debug.temp testfile.unstrip
testrun ../src/strip -o testfile.temp $debugout $original
@@ -46,6 +46,12 @@ cmp $debugfile testfile.debug.temp
# Check elflint and the expected result.
testrun ../src/elflint -q -d testfile.debug.temp
+
+# Now test unstrip recombining those files.
+testrun ../src/unstrip -o testfile.unstrip testfile.temp testfile.debug.temp
+
+# Check that it came back whole.
+testrun ../src/elfcmp --hash-inexact $original testfile.unstrip
}
exit 0