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: @test native, skipped in the interpreter (#55)

The interpreter cannot call C (ADR 0005), so a test that reaches a C
function (a package such as sqlite, or its own @extern) can run only
under `louise test --native`. Nothing could say so: `louise test` ran it
and it failed with "unknown extern ... (not available in the
interpreter)", and apps gated such tests on an environment variable, so
in the interpreter they reported "ok" while checking nothing.

`@test native` marks such a test (Attrs.native_only, louise_core's
Test.native_only). Any other argument to `@test` is E0114, and so is
`native` on a `@test import`: an import has nothing to run.

An interpreted run skips a native-only test before the cache and the
runner are considered: it prints `test m.t ... skipped (native only)` in
order, and the summary appends `, K skipped (native only)` only when K
> 0, so a run without one still prints `N passed, M failed`. A skip is
never kept in the result cache (kept as a pass, it would later print as
`ok (cached)`), does not change the exit status, and a run whose tests
are all kept or skipped builds no program. Reports carry an Outcome
(passed, cached, failed, skipped) instead of a Result and a flag.

`louise test --native` is unchanged: every test, native-only ones
included, is built and run.

ADR 0061 Revision 1 records this; ADR 0005 Revision 1 and the language
and diagnostics references point to it. `louise check` noting an
unmarked test that reaches a package's C extern is left as a follow-up.

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

olivier · il y a 2 h · 427d21101ca8435d03200f5f1d6927ea3adc3942

Parents a60e932

11 fichiers modifiés, 311 ajouts, 55 suppressions