mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-06 18:39:47 +00:00
Add viewport-driven paging with layout acknowledgements, bounded retries, cancellation gates, and epoch-safe history retention. Preserve transcript anchors and expansion state, fix tool-group identity collisions, and serialize Android history coordination on Main. Reduce per-scroll composition and layout work; add native regression tests, CI coverage, and profiling guidance.
18 lines
861 B
Bash
Executable File
18 lines
861 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Isolated app-hosted UIKit layout tests; never installs into a user's device.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
runtime=$(xcrun simctl list runtimes -j | python3 -c '
|
|
import json, sys
|
|
items = [x for x in json.load(sys.stdin)["runtimes"] if x.get("isAvailable") and x.get("name", "").startswith("iOS")]
|
|
print(max(items, key=lambda x: tuple(map(int, x["version"].split("."))))["identifier"])
|
|
')
|
|
device=$(xcrun simctl create "HAPI Transcript Tests" com.apple.CoreSimulator.SimDeviceType.iPhone-15 "$runtime")
|
|
trap 'xcrun simctl delete "$device" >/dev/null 2>&1 || true' EXIT
|
|
|
|
xcodebuild test -project ios/Hapi.xcodeproj -scheme Hapi \
|
|
-destination "platform=iOS Simulator,id=$device" \
|
|
-derivedDataPath "${HAPI_TEST_DERIVED_DATA:-/tmp/hapi-transcript-tests}" \
|
|
-parallel-testing-enabled NO CODE_SIGNING_ALLOWED=NO "$@"
|