Tests: the native suite in seconds, every test on its own, all cores
- 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:
1 parent
d1d1bb398c
commit
5ca7242615
12 files changed
+397
-81
No files matched your search
@@ -155,12 +155,16 @@ remote-build *targets:
|
||||
|
||||
# Compositor + wasm component + lib tests.
|
||||
test: modules emoji-font
|
||||
XDG_CONFIG_HOME="$(mktemp -d)" CHANDRA_TEST_CONFIG=1 moon test --target native --warn-list -a compositor/renderer compositor/wasm compositor/emoji compositor/host
|
||||
scripts/test-native.py
|
||||
moon test --target wasm --warn-list -a lib/shell lib/panel lib/clock lib/launcher lib/wm lib/taskbar lib/layoutpick lib/modmgr
|
||||
|
||||
# Native tests whose file or name contains one of WORDS (all without any), in parallel: `just t touch`.
|
||||
t *words:
|
||||
scripts/test-native.py {{words}}
|
||||
|
||||
# Render one composed frame to _build/e2e_frame.png (via the e2e test).
|
||||
frame: modules
|
||||
moon test --target native --warn-list -a compositor/host
|
||||
scripts/test-native.py -p compositor/host e2e_test
|
||||
@echo "wrote _build/e2e_frame.png"
|
||||
|
||||
# Everything CI runs.
|
||||
|
||||
Reference in new issue
Block a user