[DTrace-devel] [PATCH 2/3] runtest.sh: Export PYTHONPATH when running tests in-tree
Alan Maguire
alan.maguire at oracle.com
Fri May 15 13:44:14 UTC 2026
This will allow us to test python bindings when built, but not
installed.
Signed-off-by: Alan Maguire <alan.maguire at 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
More information about the DTrace-devel
mailing list