gprofng: Set LD_LIBRARY_PATH, GPROFNG_SYSCONFDIR for all tests
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_binutils_check--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_binutils_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 |
success
|
Testing passed
|
Commit Message
From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
Several gprofng tests failed when we built but didn't install gprofng.
We set LD_LIBRARY_PATH, GPROFNG_SYSCONFDIR to find our libraries and
configuration file.
These variables must be set for all gprofng tests.
gprofng/ChangeLog
2023-08-24 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
* testsuite/config/default.exp: 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 | 4 ++++
gprofng/testsuite/lib/Makefile.skel | 5 -----
2 files changed, 4 insertions(+), 5 deletions(-)
@@ -36,6 +36,10 @@ if { "$CHECK_TARGET" == "check-install" } {
set ::env(GPROFNG) "$PREFIX/bin/gprofng"
} else {
set ::env(GPROFNG) "$BUILDDIR/src/gprofng"
+ set ::env(LD_LIBRARY_PATH) "$BUILDDIR/src"
+
+ # Set GPROFNG_SYSCONFDIR to find out gprofng.rc:
+ set ::env(GPROFNG_SYSCONFDIR) "$srcdir/../src"
}
set TEST_TIMEOUT 300
@@ -39,11 +39,6 @@ DISPLAY = $(GPROFNG) display text
EXPERIMENT = test.er
DISPLAY_LOG = display.log
-export LD_LIBRARY_PATH := $(BUILDDIR)/src
-
-# Set GPROFNG_SYSCONFDIR to find out gprofng.rc:
-export GPROFNG_SYSCONFDIR := $(srcdir)/../../../src
-
.PHONY: all collect compare clobber clean
all: compare