Files
DOSSIER/scripts/cycles/smoke.sh
T
Claude d0ba3f17ae
check / check (push) Has been cancelled
check / licenses (push) Has been cancelled
check / e2e (push) Has been cancelled
macos / native (push) Has been cancelled
cycles / linux (push) Has been cancelled
cycles / macos (push) Has been cancelled
[215] Cycles: Bau (CI Linux/macOS) und Auslieferung (Tauri, Electron)
cycles.yml baut Cycles je Plattform (Linux x86_64, macOS arm64) und legt das Paket als Artefakt und am Gitea-Release cycles-<version> ab;
release.yml lädt es vor dem App-Bau (get.sh). Mitgeliefert: Electron extraResources (resources/cycles), Tauri externalBin + resources
(tauri.cycles.conf.json). Fassade src/native/cyclesRuntime.ts (cyclesAvailable, runCycles mit Fortschritt und Abbruch), Hauptprozess und
Rust (cycles.rs) prüfen die Argumente und starten nur das Paketprogramm. build-macos.sh fertig, Lizenztexte im Paket, NOTICE, doc/CYCLES.md.
Geprüft: vitest, rustc --test, AppImage mit Linux-Paket (test:linux-app, Fall Cycles). Nicht geprüft: Workflows, Mac, Tauri-Befehle.
2026-11-16 17:01:38 +00:00

14 lines
936 B
Bash
Executable File

#!/usr/bin/env bash
# [215] Rauchtest für ein gebautes Cycles-Paket (CI, nach dem Bau): kleine Szene (spike-scene.py) mit 4 Samples rendern,
# PNG-Kopf und die Fortschrittszeilen prüfen. Läuft auf der CPU (gehostete CI-Runner haben keine GPU).
# scripts/cycles/smoke.sh <dist-Ordner>
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DIST="${1:?dist-Ordner}"
T="$(mktemp -d)"; trap 'rm -rf "$T"' EXIT
python3 "$HERE/spike-scene.py" "$T/haus.xml" >/dev/null
( cd "$T" && "$DIST/cycles" --background --device CPU --samples 4 --width 160 --height 90 --output out.png haus.xml ) 2>&1 | tr '\r' '\n' | tee "$T/log.txt" | tail -8
grep -q "Sample 4/4" "$T/log.txt" || { echo "smoke: keine Fortschrittszeile 'Sample 4/4'"; exit 1; }
[ "$(head -c 8 "$T/out.png" | od -An -tx1 | tr -d ' \n')" = "89504e470d0a1a0a" ] || { echo "smoke: out.png ist kein PNG"; exit 1; }
echo "smoke: ok ($(wc -c < "$T/out.png") Bytes PNG)"