Tests: the native suite in seconds, every test on its own, all cores
CI / test (push) Canceled after 0s
Deploy to the handset / build-and-deploy (push) Successful in 3m11s

- scripts/test-native.py (just t WORD): builds once, runs each test in its own
  process in parallel, longest first, with a timeout; CI and just test use it.
- Tests no longer search this machine's apps and icon themes.
- Compiled wasm modules are cached between test processes (CHANDRA_WASM_CACHE).
- draw_circle fills its middle with spans (same pixels); encode_png writes into
  one buffer, with a CRC table.
- The ffprobe helper always waited out its 20 s: its done file was empty.
- The fake polkit helper no longer depends on which shell sh is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Opus 5.5 committed 2026-11-29 23:45:29 -08:00
1 parent d1d1bb398c
commit 5ca7242615
12 files changed
+397 -81

No files matched your search

+1 -1
View File
@@ -170,7 +170,7 @@ fn need_ffmpeg() -> Unit raise {
fn run_capture(cmd : String, tag : String) -> String {
let out = "/tmp/chandra-rec-" + tag + "-" + @sys.getpid().to_string() + ".txt"
let done = out + ".done"
ignore(@sys.spawn("(" + cmd + ") > '" + out + "' 2>&1; touch '" + done + "'", ""))
ignore(@sys.spawn("(" + cmd + ") > '" + out + "' 2>&1; echo > '" + done + "'", ""))
let t0 = @sys.monotonic_ms()
while @sys.read_file_bytes(done).length() == 0 && @sys.monotonic_ms() - t0 < 20000UL {
@sys.sleep_ms(20)