blob: 80d33429e554796febcf6a52578df4fac281133f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/env bash
# Adversarial raw-9P2000 client tests for the 9proc-demo server.
# Usage: bash 9proc/test/adv_9proc_hostile.sh <9proc-demo> [--fast] (part of zig build 9proc-adv)
# Spawns the server on a temporary unix socket and attacks it with
# 9proc/test/adv_9proc_hostile.py (Python 3 stdlib). Exit 1 on any failure.
set -u
PROC=$(realpath "${1:?path to 9proc-demo}")
shift
command -v python3 >/dev/null || { echo "SKIP: python3 missing"; exit 0; }
exec python3 "$(dirname "$0")/adv_9proc_hostile.py" --server "$PROC" "$@"
|