From: Alan Maguire <alan.maguire@oracle.com>
To: dtrace@lists.linux.dev
Cc: dtrace-devel@oss.oracle.com, Alan Maguire <alan.maguire@oracle.com>
Subject: [PATCH v4 6/9] runtest.sh: Export PYTHONPATH when running tests in-tree
Date: Wed, 12 Aug 2026 14:22:07 +0100 [thread overview]
Message-ID: <20260812132212.527871-7-alan.maguire@oracle.com> (raw)
In-Reply-To: <20260812132212.527871-1-alan.maguire@oracle.com>
This will allow us to test python bindings when built, but not
installed.
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
---
runtest.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/runtest.sh b/runtest.sh
index 9f06a499..c0ccffc6 100755
--- a/runtest.sh
+++ b/runtest.sh
@@ -552,6 +552,7 @@ export LANGUAGE=C
if [[ -z $USE_INSTALLED ]]; then
dtrace="$(pwd)/build*/dtrace"
+ PYTHONPATH="$(pwd)/build/bindings/python${PYTHONPATH:+:$PYTHONPATH}"
test_libdir="$(pwd)/build/dlibs"
test_ldflags="-L$(pwd)/build"
test_cppflags="-I$(pwd)/include -I$(pwd)/uts/common -I$(pwd)/build -I$(pwd)/libdtrace -DARCH_$arch"
@@ -562,6 +563,7 @@ if [[ -z $USE_INSTALLED ]]; then
dtprobed_flags="-n $helper_device -s${tmpdir}/run/dtrace -F"
export DTRACE_DOF_INIT_DEVNAME="/dev/$helper_device"
export DTRACE_OPT_DOFSTASHPATH="${tmpdir}/run/dtrace"
+ export PYTHONPATH
if [[ -z $(eval echo $dtrace) ]]; then
echo "No dtraces available." >&2
--
2.43.5
next prev parent reply other threads:[~2026-08-12 13:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 13:22 [PATCH v4 0/9] Add python, PCP support via libdtrace interfaces Alan Maguire
2026-08-12 13:22 ` [PATCH v4 1/9] libdtrace: Support multiple DTrace handles per process Alan Maguire
2026-08-12 13:22 ` [PATCH v4 2/9] libdtrace: share vmlinux BTF/CTF globally to support faster startup Alan Maguire
2026-08-12 13:22 ` [PATCH v4 3/9] libdtrace: Refactor math functions into dt_math.h Alan Maguire
2026-08-12 13:22 ` [PATCH v4 4/9] python: Add cpython bindings for libdtrace Alan Maguire
2026-08-12 13:22 ` [PATCH v4 5/9] dtrace.spec: add python bindings packaging Alan Maguire
2026-08-12 13:22 ` Alan Maguire [this message]
2026-08-12 13:22 ` [PATCH v4 7/9] test: add tests for python bindings Alan Maguire
2026-08-12 13:22 ` [PATCH v4 8/9] dtrace: Add a PCP PMDA to expose DTrace data as metrics Alan Maguire
2026-08-12 13:22 ` [PATCH v4 9/9] dtrace.spec: Add optional PCP PMDA packaging pcp-pmda-dtrace Alan Maguire
2026-08-13 21:01 ` [PATCH v4 0/9] Add python, PCP support via libdtrace interfaces Kris Van Hees
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260812132212.527871-7-alan.maguire@oracle.com \
--to=alan.maguire@oracle.com \
--cc=dtrace-devel@oss.oracle.com \
--cc=dtrace@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox