aboutsummaryrefslogtreecommitdiff
path: root/gprofng/testsuite/lib
diff options
context:
space:
mode:
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>2022-10-10 12:57:19 -0700
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2022-10-11 00:14:06 -0700
commita665c4d5c6e1d23d31ac434949b9243025496aef (patch)
treefea7723f9496da3621a96d32cc886951e3bdd7b8 /gprofng/testsuite/lib
parentf6c874187a5a8b6f7108fff3b668395de45f9904 (diff)
downloadgdb-a665c4d5c6e1d23d31ac434949b9243025496aef.zip
gdb-a665c4d5c6e1d23d31ac434949b9243025496aef.tar.gz
gdb-a665c4d5c6e1d23d31ac434949b9243025496aef.tar.bz2
gprofng: run tests without installation
gprofng/ChangeLog 2022-10-10 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> PR gprofng/29107 * testsuite/config/default.exp: Set up environment to run gprofng tests without installation. * testsuite/lib/Makefile.skel: Likewise. * testsuite/lib/display-lib.exp: Likewise.
Diffstat (limited to 'gprofng/testsuite/lib')
-rw-r--r--gprofng/testsuite/lib/Makefile.skel3
-rw-r--r--gprofng/testsuite/lib/display-lib.exp2
2 files changed, 2 insertions, 3 deletions
diff --git a/gprofng/testsuite/lib/Makefile.skel b/gprofng/testsuite/lib/Makefile.skel
index 157f6f6..035d320 100644
--- a/gprofng/testsuite/lib/Makefile.skel
+++ b/gprofng/testsuite/lib/Makefile.skel
@@ -39,8 +39,7 @@ DISPLAY = $(GPROFNG) display text
EXPERIMENT = test.er
DISPLAY_LOG = display.log
-gprofng_dir := $(shell dirname $$(find ../root -name libgprofng.so.0 | head -1))
-export LD_LIBRARY_PATH := $(gprofng_dir):$(gprofng_dir)/..
+export LD_LIBRARY_PATH := $(BUILDDIR)/src
# Set GPROFNG_SYSCONFDIR to find out gprofng.rc:
export GPROFNG_SYSCONFDIR := $(srcdir)/../../../src
diff --git a/gprofng/testsuite/lib/display-lib.exp b/gprofng/testsuite/lib/display-lib.exp
index 38ecb8d..d103f0f 100644
--- a/gprofng/testsuite/lib/display-lib.exp
+++ b/gprofng/testsuite/lib/display-lib.exp
@@ -58,7 +58,7 @@ proc run_display_test { dir cflags gprofflags } {
set tdir "tmpdir/$testdir"
send_log "create dir: $tdir\n"
set output [run_native_host_cmd "mkdir -p $tdir"]
- set gprofng [exec find $BUILDDIR/tmpdir -type f -name gprofng -perm -u+x | head -1]
+ set gprofng $BUILDDIR/src/gprofng
set fd [open "$tdir/rules.txt" "w"]
switch -regexp -- $testdir {