Imported Upstream version 0.160
[platform/upstream/elfutils.git] / tests / run-alldts.sh
index d8b87c2..6a9a9ec 100755 (executable)
 
 . $srcdir/test-subr.sh
 
+tempfiles testfile-alldts
+
 # This will produce "testfile-alldts" file
-testrun ./alldts
+testrun ${abs_builddir}/alldts
 
-testrun_compare ../src/readelf -d testfile-alldts <<\EOF
+testrun_compare ${abs_top_builddir}/src/readelf -d testfile-alldts <<\EOF
 
 Dynamic segment contains 66 entries:
  Addr: 0x000001a0  Offset: 0x000078  Link to section: [ 0] ''
@@ -93,6 +95,4 @@ Dynamic segment contains 66 entries:
   FILTER            0xdeadbeef
 EOF
 
-rm -f testfile-alldts
-
 exit 0