Merge branch 'test/binary-smoke' into integration/phase2

This commit is contained in:
ari committed 2026-10-16 10:05:09 -04:00
commit 31c44c74d5
3 files changed
+361

No files matched your search

+8
View File
@@ -166,6 +166,14 @@ Metrics are polled every `metrics_interval_secs` (systemd unit active/failed/res
ldd /usr/local/bin/slinuxm # libc, libm, libgcc_s, libsystemd and its dependencies only
```
## Testing
```sh
devenv shell -- smoke # same as: cargo test --test binary_smoke -- --nocapture
```
The smoke test runs the real built `slinuxm` binary against a throwaway SQLite database in a temp directory: it creates a token with the CLI, starts `serve` on a free loopback port, exercises `/healthz`, REST and MCP with and without the token, revokes the token, and checks a clean SIGTERM exit and a 0600 database. It needs no root and no network. Checks that depend on host data (systemd over D-Bus, the journal) are skipped with a printed reason when the source is unavailable; Docker is never required.
## Development
```sh