summaryrefslogtreecommitdiff
path: root/introspect/test/adv_linux_probe.sh
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-19 21:26:05 -0300
committerGabriel Schneider <[email protected]>2026-09-19 21:26:05 -0300
commitb05abcba3ea09ea106ad28364c6e40a3ec31b890 (patch)
tree9170fac5e7e5d8bde108de34a182aaa9d6844117 /introspect/test/adv_linux_probe.sh
parentae310a207534b33b7321dd2b9f423a73b1969159 (diff)
downloadcloud9-b05abcba3ea09ea106ad28364c6e40a3ec31b890.tar.gz
cloud9-b05abcba3ea09ea106ad28364c6e40a3ec31b890.zip
Add 9player and introspect as programs beside the library
9player/: FUSE mount CLI that mounts a 9P2000 tree into a fresh user+mount namespace and runs a program in it (no root, no libfuse, no libc). introspect/: the 9P debug/introspection library (freestanding core, value renderers, Linux probe with threads/stacks/memory/breakpoints/panics) and its demo server. Each has its own build fragment; the root build.zig wires them behind -D9player/-Dintrospect with namespaced steps (9player-itest, introspect-check-freestanding, programs-test, ...) and exports the introspect module for dependents. This is the layout for related programs. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to 'introspect/test/adv_linux_probe.sh')
-rwxr-xr-xintrospect/test/adv_linux_probe.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/introspect/test/adv_linux_probe.sh b/introspect/test/adv_linux_probe.sh
new file mode 100755
index 0000000..3535aa9
--- /dev/null
+++ b/introspect/test/adv_linux_probe.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+# Adversarial tests of the introspect Linux layer (probe loop, debug provider,
+# signal machinery) with raw 9P2000 over a unix socket and one 9player mount.
+# Usage: bash introspect/test/adv_linux_probe.sh <9player> <introspect> (part of zig build introspect-adv)
+# Exit 1 on any failure; SKIP (exit 0) without python3.
+set -u
+PLAYER=$(realpath "${1:?path to 9player}")
+INTROSPECT=$(realpath "${2:?path to introspect}")
+command -v python3 >/dev/null || { echo "SKIP: python3 missing"; exit 0; }
+exec python3 "$(dirname "$0")/adv_linux_probe.py" --player "$PLAYER" --server "$INTROSPECT"