22 lines
1.8 KiB
Bash
Executable File
22 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
# Production Kotlin with local deterministic media/transport doubles, no real capture.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
mkdir -p logs/avatar-safe-061
|
|
python3 scripts/check-reply-regressions.py > logs/avatar-safe-061/client-tests.txt 2>&1
|
|
./scripts/check-expression-rules.sh > logs/avatar-safe-061/expression-tests.txt 2>&1
|
|
python3 scripts/check-camera-controller.py > logs/avatar-safe-061/camera-controller-tests.txt 2>&1
|
|
python3 scripts/check-avatar-ui.py > logs/avatar-safe-061/ui-contract-tests.txt 2>&1
|
|
python3 - <<'PY'
|
|
from pathlib import Path
|
|
import hashlib,json
|
|
root=Path.cwd()
|
|
paths=list((root/'app/src/main/java').rglob('*.kt'))+list((root/'app/src/androidTest').rglob('*.kt'))+list((root/'tests').rglob('*.kt'))
|
|
paths += list((root/'tests/avatar-pixels').glob('*.c'))
|
|
paths += [root/p for p in ('app/build.gradle','scripts/check-reply-regressions.py','scripts/check-expression-rules.sh','scripts/check-avatar-regressions.sh','scripts/check-avatar-ui.py','scripts/check-camera-controller.py','scripts/check-avatar-shader.py','scripts/import-avatar-graph.py','scripts/package-avatar-safe-release.sh','scripts/package-avatar-safe-release.py','scripts/package-avatar-engineering.py','scripts/package-avatar-natural.py','scripts/package-avatar-ui.py','scripts/package-avatar-mouth.py')]
|
|
result={'status':'passed','jvm_entry_points':11,'camera_callback_replay':True,'uiSourceContracts':'passed','uiDeviceInstrumentation':'not_run','real_device':'pending',
|
|
'hashes':{str(p.relative_to(root)):hashlib.sha256(p.read_bytes()).hexdigest() for p in sorted(paths)}}
|
|
(root/'logs/avatar-safe-061/client-tests.json').write_text(json.dumps(result,indent=2)+'\n')
|
|
print('PASS: eleven JVM entry points, including avatar/native-head activity and call lifecycle; no real phone capture')
|
|
PY
|