Files
SpriteandClaude Sonnet 5.5 66e8e90da1 Move the existing launcher into legacy/
git mv of everything (web/ android/ qt/ wasi/ android-wasm/ tests/ ci/ pixi.toml
README) so history follows; legacy/ keeps its own .gitignore and a new root
.gitignore starts for the MoonBit project.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 00:55:15 +00:00

19 lines
602 B
Python

#!/usr/bin/env python3
"""Serve web/ on a free port and run tests/e2e.cjs against it (`pixi run test`)."""
import os
import subprocess
import sys
import threading
from ultra_tool import make_server
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
srv = make_server(os.path.join(ROOT, "web"), 0, quiet=True)
threading.Thread(target=srv.serve_forever, daemon=True).start()
r = subprocess.run(["node", os.path.join(ROOT, "tests", "e2e.cjs")], cwd=ROOT,
env={**os.environ, "BASE": f"http://localhost:{srv.server_address[1]}"})
srv.shutdown()
sys.exit(r.returncode)