From: Mark Wielaard Date: Sat, 17 Jun 2023 00:33:33 +0000 (+0200) Subject: tests: Use readelf -N -w in run-strip-reloc.sh X-Git-Tag: elfutils-0.190~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=127e3831c169851e796496582213a94965337696;p=thirdparty%2Felfutils.git tests: Use readelf -N -w in run-strip-reloc.sh 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 --- diff --git a/tests/run-strip-reloc.sh b/tests/run-strip-reloc.sh index 02e626af9..3b3585a6a 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 ||