From: Mark Wielaard <mark@klomp.org>
To: elfutils-devel@sourceware.org
Cc: Mark Wielaard <mark@klomp.org>
Subject: [COMMITTED] tests: Use readelf -N -w in run-strip-reloc.sh
Date: Sat, 17 Jun 2023 02:57:52 +0200 [thread overview]
Message-ID: <20230617005752.254335-1-mark@klomp.org> (raw)
With -N the test runs 4 times faster. And the address lookup is not
essential for the test.
* tests/run-strip-reloc.sh: Use readelf -N -w.
Signed-off-by: Mark Wielaard <mark@klomp.org>
---
tests/run-strip-reloc.sh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/run-strip-reloc.sh b/tests/run-strip-reloc.sh
index 02e626af..3b3585a6 100755
--- a/tests/run-strip-reloc.sh
+++ b/tests/run-strip-reloc.sh
@@ -65,16 +65,16 @@ runtest() {
# Strip of DWARF section lines, offset will not match.
# Everything else should match.
- testrun ${abs_top_builddir}/src/readelf -w $debugfile1 \
+ testrun ${abs_top_builddir}/src/readelf -N -w $debugfile1 \
| grep -v ^DWARF\ section > readelf.out1 ||
- { echo "*** failure readelf -w debugfile1 $infile"; status=1; }
+ { echo "*** failure readelf -N -w debugfile1 $infile"; status=1; }
- testrun ${abs_top_builddir}/src/readelf -w $debugfile2 \
+ testrun ${abs_top_builddir}/src/readelf -N -w $debugfile2 \
| grep -v ^DWARF\ section > readelf.out2 ||
- { echo "*** failure readelf -w debugfile2 $infile"; status=1; }
+ { echo "*** failure readelf -N -w debugfile2 $infile"; status=1; }
testrun_compare cat readelf.out1 < readelf.out2 ||
- { echo "*** failure readelf -w compare $infile"; status=1; }
+ { echo "*** failure readelf -N -w compare $infile"; status=1; }
testrun ${abs_top_builddir}/src/strip --reloc-debug-sections-only \
$debugfile1 ||
--
2.39.3
reply other threads:[~2023-06-17 0:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230617005752.254335-1-mark@klomp.org \
--to=mark@klomp.org \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).