]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: Use readelf -N -w in run-strip-reloc.sh
authorMark Wielaard <mark@klomp.org>
Sat, 17 Jun 2023 00:33:33 +0000 (02:33 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 17 Jun 2023 00:33:38 +0000 (02:33 +0200)
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

index 02e626af95fd8d4316f34db31d91849a60f0e480..3b3585a6a91aeb590cf0b6b426c36863039d3c50 100755 (executable)
@@ -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 ||