tools/verify runs every check that doesn't need an install. The test harness now holds a keep-awake assertion and a longer limit, because idle phones froze runs partway through. Co-Authored-By: Claude Opus 5.5 <[email protected]>
14 lines
990 B
Shell
Executable file
14 lines
990 B
Shell
Executable file
#!/bin/bash
|
|
# Renders every island state offscreen on the phone (a throwaway process, never SpringBoard) and pulls the result to
|
|
# build/selftest. Needs tools/package.sh to have built build/Islet-arm64e.dylib.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
KEY=${IPHONE_KEY:-$HOME/.ssh/iphone_key}; PH=${IPHONE:-mobile@192.168.1.94}
|
|
SWIFT=${SWIFT:-$HOME/.local/opt/swift/usr/bin}
|
|
tools/build-arch arm64e exe build/loadtest-e tests/loadtest.m
|
|
ssh -i "$KEY" "$PH" 'rm -rf /var/jb/var/mobile/t/selftest; mkdir -p /var/jb/var/mobile/t/selftest'
|
|
scp -q -i "$KEY" build/Islet-arm64e.dylib build/loadtest-e "$PH:/var/jb/var/mobile/t/"
|
|
ssh -i "$KEY" "$PH" 'cd /var/jb/var/mobile/t && ldid -S Islet-arm64e.dylib && ISLET_SELFTEST=/var/jb/var/mobile/t/selftest ./loadtest-e ./Islet-arm64e.dylib 120'
|
|
rm -rf build/selftest; scp -rq -i "$KEY" "$PH:/var/jb/var/mobile/t/selftest" build/selftest
|
|
test -f build/selftest/status.txt || { echo "self test wrote no result"; exit 1; }
|
|
cat build/selftest/status.txt
|