Files
ps5upload/tests/lab/capture-runtime-trace.sh
PhantomPtr 5954c8adde 6.0.0: AVA1 replaces FTX2 — one encrypted connection for everything (#374)
See CHANGELOG.md (6.0.0). Full history of the work: tag ftx2-last and branch history archived in ps5upload-docs.
2026-10-05 00:25:05 -07:00

37 lines
704 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
TRACE_DIR="${TRACE_DIR:-$ROOT_DIR/lab/traces}"
STAMP="$(date +%Y%m%d-%H%M%S)"
OUT_DIR="$TRACE_DIR/$STAMP"
mkdir -p "$OUT_DIR"
{
echo "timestamp=$STAMP"
echo "ps5_ip=${PS5_IP:-192.168.137.2}"
echo "runtime_port=${RUNTIME_PORT:-9120}"
echo "payload_loader_port=${PS5_PORT:-9021}"
} > "$OUT_DIR/context.txt"
if "$ROOT_DIR/lab/check-runtime-port.sh" > "$OUT_DIR/port-check.txt" 2>&1; then
:
else
:
fi
if "$ROOT_DIR/lab/hello-runtime.sh" > "$OUT_DIR/hello.txt" 2>&1; then
:
else
:
fi
if "$ROOT_DIR/lab/status-runtime.sh" > "$OUT_DIR/status.txt" 2>&1; then
:
else
:
fi
echo "$OUT_DIR"