Fusion de main (analyse du match, 1l) ; l'abandon passe en version 4 des événements
La version 3 est celle de main (identifiant de match) ; l'abandon prend la version 4, avec la migration des versions 1, 2 et 3 testée. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+15
-3
@@ -31,9 +31,14 @@
|
||||
# build/browser-shots/retours-2/ ; la capsule « Crawford » y est capturée
|
||||
# par match.mjs.
|
||||
#
|
||||
# Le bilan d'un match entier (tests/browser/match-bilan.mjs : un match en 5
|
||||
# points avec dés imposés, où le joueur remonte après avoir été mené ; courbe
|
||||
# continue, bilan, analyse, « Mes parties », export SGF, prompt), captures
|
||||
# dans build/browser-shots/match-bilan/.
|
||||
#
|
||||
# BROWSERS=chromium et SCRIPTS=accueil (ou play, match, maitre, bilan,
|
||||
# prompts, nouvelle-partie, retours-joueurs, lecons, progression, plateau,
|
||||
# retours-2)
|
||||
# match-bilan, retours-2)
|
||||
# restreignent le test.
|
||||
#
|
||||
# Outils : l'image de Playwright (navigateurs) et le paquet playwright,
|
||||
@@ -47,7 +52,7 @@ cd "$(dirname "$0")/.."
|
||||
image="${PLAYWRIGHT_IMAGE:?lancer via make test-browser}"
|
||||
browsers="${BROWSERS:-chromium firefox}"
|
||||
# Les scripts à lancer (tests/browser/<nom>.mjs), tous par défaut.
|
||||
scripts="${SCRIPTS:-play accueil match maitre bilan prompts nouvelle-partie retours-joueurs lecons progression plateau retours-2}"
|
||||
scripts="${SCRIPTS:-play accueil match maitre bilan prompts nouvelle-partie retours-joueurs lecons progression plateau match-bilan retours-2}"
|
||||
|
||||
unset MAKEFLAGS MFLAGS MAKELEVEL
|
||||
make -s package >/dev/null
|
||||
@@ -87,7 +92,7 @@ mkdir -p build/browser-shots
|
||||
cp tests/browser/play.mjs tests/browser/accueil.mjs tests/browser/match.mjs tests/browser/recette.mjs \
|
||||
tests/browser/maitre.mjs tests/browser/bilan.mjs tests/browser/prompts.mjs tests/browser/nouvelle-partie.mjs \
|
||||
tests/browser/retours-joueurs.mjs tests/browser/lecons.mjs tests/browser/progression.mjs tests/browser/plateau.mjs \
|
||||
tests/browser/retours-2.mjs "$tools/"
|
||||
tests/browser/retours-2.mjs tests/browser/match-bilan.mjs "$tools/"
|
||||
status=0
|
||||
for browser in $browsers; do
|
||||
# Réseau de l'hôte : le site est sur 127.0.0.1. Le service worker
|
||||
@@ -178,5 +183,12 @@ for browser in $browsers; do
|
||||
-v "$PWD/$tools:/tools" -v "$PWD/build/browser-shots:/shots" -w /tools "$image" \
|
||||
node retours-2.mjs "http://localhost:$port/" "$browser" /shots || status=1
|
||||
fi
|
||||
if [[ " $scripts " == *" match-bilan "* ]]; then
|
||||
# Le bilan d'un match entier (étape 1l) ; captures dans
|
||||
# build/browser-shots/match-bilan/.
|
||||
docker run --rm --init --ipc=host --network host --user "$(id -u):$(id -g)" -e HOME=/tmp \
|
||||
-v "$PWD/$tools:/tools" -v "$PWD/build/browser-shots:/shots" -w /tools "$image" \
|
||||
node match-bilan.mjs "http://localhost:$port/" "$browser" /shots || status=1
|
||||
fi
|
||||
done
|
||||
exit "$status"
|
||||
|
||||
Reference in New Issue
Block a user