]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix 30808 gprofng tests failed
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 31 Aug 2023 23:26:59 +0000 (16:26 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Tue, 5 Sep 2023 20:01:46 +0000 (13:01 -0700)
commita13e4c5c10d1a13d9128d033c9525810e876ac14
treebe42e992faad461fd4240b2ebf6fb79b90a0cbaa
parenta006bc9c37e95b4afaf85715cc54fe57b3300ccd
Fix 30808 gprofng tests failed

In gprofng testing, we need a tempory gprofng installation to resolve run-time
dependencies on libraries (libgprofng, libopcodes, libbfd, etc).
We set LD_LIBRARY_PATH and GPROFNG_SYSCONFDIR to find our libraries and
configuration file. These variables must be set for all gprofng tests.

Tested on aarch64 and x86_64 with and without --enable-shared and --target=<>.

gprofng/ChangeLog
2023-08-31  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

PR gprofng/30808
* testsuite/config/default.exp: Make a temporary install dir.
Set LD_LIBRARY_PATH, GPROFNG_SYSCONFDIR.
* testsuite/lib/Makefile.skel: Move LD_LIBRARY_PATH and
GPROFNG_SYSCONFDIR setting in testsuite/config/default.exp.
gprofng/testsuite/config/default.exp
gprofng/testsuite/lib/Makefile.skel