summaryrefslogtreecommitdiff
path: root/9ns/test/adversarial.sh
blob: 8575dcf398bb2b6734214f95c02fa93262becccf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
# Runs every 9ns adversarial suite in sequence (hostile servers, FUSE
# semantics, process/namespace edge cases, stress). The suites aimed at the
# 9proc server itself live in 9proc/test (zig build 9proc-adv).
# Usage: bash 9ns/test/adversarial.sh <9ns> <9proc-demo>   (zig build 9ns-adv)
set -u
NS=${1:?path to 9ns}
PROC=${2:?path to 9proc-demo}
HERE=$(cd "$(dirname "$0")" && pwd)
status=0
for suite in adv_ns_process adv_bridge_hostile adv_bridge_interrupt adv_bridge_semantics adv_bridge_stress; do
    echo "### $suite"
    if bash "$HERE/$suite.sh" "$NS" "$PROC"; then echo "### $suite: ok"; else echo "### $suite: FAILED"; status=1; fi
done
exit $status