summaryrefslogtreecommitdiff
path: root/9proc/test/adversarial.sh
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-19 23:28:22 -0300
committerGabriel Schneider <[email protected]>2026-09-19 23:28:22 -0300
commitba996acfcad1698adbf4a1834fe50e73b1c6cab9 (patch)
tree282ba00ce5b10d7416aecb9f2f0f0a439340a57d /9proc/test/adversarial.sh
parentb05abcba3ea09ea106ad28364c6e40a3ec31b890 (diff)
downloadcloud9-ba996acfcad1698adbf4a1834fe50e73b1c6cab9.tar.gz
cloud9-ba996acfcad1698adbf4a1834fe50e73b1c6cab9.zip
Rename programs: 9player -> 9ns, introspect -> 9proc, app -> web (9web)
Directories, binaries, build options (-D9ns, -D9proc), step names, module name (9proc), thread and fs names, env var NINEPLAYER_MOUNT -> NINE_MOUNT, docs and test scripts. Browser assets move to web/static. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to '9proc/test/adversarial.sh')
-rwxr-xr-x9proc/test/adversarial.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/9proc/test/adversarial.sh b/9proc/test/adversarial.sh
new file mode 100755
index 0000000..f41c276
--- /dev/null
+++ b/9proc/test/adversarial.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+# Runs every 9proc adversarial suite in sequence: hostile raw-9P clients
+# against the demo (framing, tags, floods; the core's /vars, snapshots, fids)
+# and the Linux layer through one 9ns mount (memory, signals, poll loop).
+# Usage: bash 9proc/test/adversarial.sh <9ns> <9proc-demo> [--fast]
+# `zig build 9proc-adv` runs the same suites as separate steps.
+set -u
+NS=${1:?path to 9ns}
+PROC=${2:?path to 9proc-demo}
+shift 2
+HERE=$(cd "$(dirname "$0")" && pwd)
+status=0
+for suite in adv_9proc_hostile adv_core_hostile; do
+ echo "### $suite"
+ if bash "$HERE/$suite.sh" "$PROC" "$@"; then echo "### $suite: ok"; else echo "### $suite: FAILED"; status=1; fi
+done
+echo "### adv_linux_probe"
+if bash "$HERE/adv_linux_probe.sh" "$NS" "$PROC"; then echo "### adv_linux_probe: ok"; else echo "### adv_linux_probe: FAILED"; status=1; fi
+exit $status