tobogganSe connecter

louise

The Louise language: compiler, runtime, std, tooling

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

louise test runs tests in parallel and reports them in order (#316)

Tests ran one at a time. They now run on a work queue, `--jobs N` at
once (default: one per core), interpreted and native alike:

- each test's stdout and stderr are captured and printed in the tests'
  order with its result line, so a parallel run prints what a serial one
  does (`--jobs 1` is the old behaviour);
- the interpreter takes RunOptions: an error writer for io.eprintln and
  a crashed actor's report, and `exit_ends_run`, with which os.exit
  ends the run (RtError::Exit) instead of the process: a test calling it
  fails, and the others still run;
- native test processes share the cores: LOUISE_THREADS defaults to
  cores / jobs when unset.

On toki2 the interpreted run phase goes from 2.4 s to 0.95 s. A new
fixture package checks the ordering against --jobs 1, and os.exit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 1 mois · 8c56830726d5e6b972dd3ecf3b6f4357f0368c24

Parents 9cac1d1

9 fichiers modifiés, 359 ajouts, 82 suppressions

Acrates/louise/tests/fixtures/parallel/louise.toml+2−0
Acrates/louise/tests/fixtures/parallel/src/work.lse+6−0
Acrates/louise/tests/fixtures/parallel/test/work_test.lse+31−0
Mcrates/louise_interp/src/externs.rs+15−2
Mcrates/louise_interp/src/lib.rs+72−10
Mcrates/louise_interp/src/sched.rs+10−2