Files
SocialPub/tools/pasture/interop.sh
T

15 lines
655 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2026-10-03 11:42:03 +02:00
# Drives PrivaPub and each peer (started by run.sh) through each other's federation, as their users would, then checks
# that PrivaPub's statistics saw it all without naming anyone.
# usage: tools/pasture/interop.sh [peer...] peers: gts (default), mastodon, misskey, sharkey, akkoma, lemmy, crawler
set -uo pipefail
2026-10-03 11:42:03 +02:00
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
. "$here/lib/interop.sh"
2026-10-03 11:42:03 +02:00
for peer in "${@:-gts}"; do
[ -f "$here/scenarios/$peer.sh" ] || { echo "no scenario for $peer" >&2; exit 2; }
. "$here/scenarios/$peer.sh"
done
2026-10-03 11:42:03 +02:00
echo; echo "$pass passed, $fail failed, $expected expected failures"
[ "$fail" = 0 ]