diff --git a/run-qemu.sh b/run-qemu.sh index ee09e43..458a1f6 100755 --- a/run-qemu.sh +++ b/run-qemu.sh @@ -140,6 +140,15 @@ if [[ -e "$TEST_SUBCOMP_BIN" ]]; then cp -v "$TEST_SUBCOMP_BIN" "$MOUNT/usr/bin/" fi +# Phase 13.2.b.4 : scripts ion raccourcis (test-subc, test-sw, test-out). +# Copiés depuis tools/redox-scripts/ pour invocation 1-ligne dans le shell +# Redox. Chmod +x conservé via cp -p. +for script in "$ROOT/tools/redox-scripts"/*; do + if [[ -f "$script" ]]; then + cp -vp "$script" "$MOUNT/usr/bin/" + fi +done + # --- 4. umount avant make qemu (sinon QEMU et FUSE se battent sur le même fichier) --- echo "==> démonter $MOUNT" sync diff --git a/tools/redox-scripts/test-out b/tools/redox-scripts/test-out new file mode 100755 index 0000000..b9c6f56 --- /dev/null +++ b/tools/redox-scripts/test-out @@ -0,0 +1,8 @@ +#!/usr/bin/ion +# Phase 13.2.a — Launch compositor + wl_output version gating test client. +# Le client teste binding wl_output aux v1/v2/v3 et reporte PASS/FAIL. +# Pas besoin de Ctrl+Q : le client exit puis on stoppe le compositor. +rm -f /tmp/redox-wl-comp.sock +redox-wl-compositor & +sleep 1 +redox-wl-test-wl-output diff --git a/tools/redox-scripts/test-subc b/tools/redox-scripts/test-subc new file mode 100755 index 0000000..74d2052 --- /dev/null +++ b/tools/redox-scripts/test-subc @@ -0,0 +1,10 @@ +#!/usr/bin/ion +# Phase 13.2.b.3 — Launch compositor + subcompositor test client. +# Nettoie un éventuel socket résiduel, lance le compo en background, +# attend 1s, puis lance le client de test subcompositor en avant-plan. +# Côté QEMU graphique : ESC sur la fenêtre pour exit propre du client, +# puis Ctrl+Q pour exit du compositor. +rm -f /tmp/redox-wl-comp.sock +redox-wl-compositor & +sleep 1 +redox-wl-test-client-subcompositor diff --git a/tools/redox-scripts/test-sw b/tools/redox-scripts/test-sw new file mode 100755 index 0000000..4ec83bc --- /dev/null +++ b/tools/redox-scripts/test-sw @@ -0,0 +1,8 @@ +#!/usr/bin/ion +# Phase 13.1.b — Launch compositor + simple_window test client (port wayland-rs). +# Côté QEMU graphique : ESC sur la fenêtre pour exit propre du client, +# puis Ctrl+Q pour exit du compositor. +rm -f /tmp/redox-wl-comp.sock +redox-wl-compositor & +sleep 1 +redox-wl-real-client-simple-window