aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/testsuite
AgeCommit message (Collapse)Author
26 hoursinternal/testsuite: poll output after notifyOphestra
This makes debugging a bad poll much easier. Signed-off-by: Ophestra <cat@gensokyo.uk>
27 hoursinternal/rosa: run cmd/hakurei/testsuiteOphestra
This adds a specialised Rosa OS image and runs cmd/hakurei/testsuite in a Rosa OS qemu guest. Emulation for riscv64 and ppc64le is currently broken. Signed-off-by: Ophestra <cat@gensokyo.uk>
3 daysinternal/testsuite: fail on early instance terminationOphestra
An early termination is not always caught by onDone. This could leave the test suite scanning forever if not handled. Signed-off-by: Ophestra <cat@gensokyo.uk>
3 daysinternal/testsuite: notify on long proc scansOphestra
This prints a message every second for a long-running proc scan. Signed-off-by: Ophestra <cat@gensokyo.uk>
3 daysinternal/testsuite: accept flags in hakurei helperOphestra
This avoids changing function signature when adding new flags. Signed-off-by: Ophestra <cat@gensokyo.uk>
3 daysinternal/testsuite: notify on long sway pollsOphestra
This prints a message every second for a long-running sway poll. Signed-off-by: Ophestra <cat@gensokyo.uk>
13 daysinternal/testsuite: create additional directoriesOphestra
These normally do not exist on Rosa OS. Signed-off-by: Ophestra <cat@gensokyo.uk>
13 daysinternal/testsuite: populate passwd databaseOphestra
This keeps musl happy for now. Currently, only dbus daemon and pipewire wants this, and both pieces of software will eventually be replaced, anyway. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-06internal/testsuite: notify on long pollsOphestra
This prints a message every second for a long-running poll. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-04internal/testsuite: world-readable runtime dir parentOphestra
This must be world-readable for the final XDG_RUNTIME_DIR to be accessible by the testing user. This was overlooked because the parent always existed in conventional testing environments. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03internal/testsuite: stub user account lookupsOphestra
Rosa OS does not have the concept of unix user accounts. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18internal/testsuite: lock tracer threadOphestra
This avoids getting the goroutine preempted and scheduled onto a thread other than the tracer. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: improve sandbox reportingOphestra
This avoids swallowing error messages from failed container startups. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: synchronise after terminationOphestra
This ensures that cmd/hakurei has finished cleanup and terminated before validating the outcome of that cleanup. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18internal/testsuite: drop ESRCH on detachOphestra
Getting ESRCH here is harmless, and has the same effect of detaching successfully, so drop it to avoid spurious test failures. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: move rts test out of loopOphestra
This was inadvertently placed inside the setscheduler loop due to miscounting indentations. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17cmd/hakurei/testsuite: set credentials for store accessOphestra
This avoids breaking ownership of lock files. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17cmd/hakurei/testsuite: migrate testsOphestra
This runs much faster than the NixOS test suite, and is much more precise. This also uncovered a recent severe pipewire regression. This change removes all remaining deprecated nix code. Closes #22. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17internal/testsuite: additional polling helpersOphestra
These are mostly for process lifecycle checks. This change also adds polling for the Xwayland server in the sway helper. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17internal/testsuite: get pipewire versionOphestra
This formats into some test data. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-16internal/testsuite: optional insecure argumentOphestra
This allows testing insecure configurations. This change also improves error reporting and fixes non-startup-notification behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-15internal/testsuite: optional verbose outputOphestra
Used by some tests to inspect cmd/hakurei internals. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-15internal/testsuite: optional startup notificationOphestra
This is only really used by the sandbox test suite for seccomp validation. Make it optional here to simplify other use cases. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-15internal/testsuite: disconnect script from stdinOphestra
The util-linux script program really messes up any terminal attached to stdin. Since the test programs do not take any input, and stdin is a shared resource that cannot be used anyway, this change disconnects it from stdin. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-15internal/testsuite: silence session servicesOphestra
These are too noisy and are not useful outside of debugging the test suite itself, so silence them by default. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-14internal/testsuite: move helpers from cmd/hakureiOphestra
These helpers are useful across multiple test suites. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-12cmd/hakurei/testsuite: extra exercise parametersOphestra
This also removes the interval and fixes the mustStart search criteria. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-06internal/testsuite: add additional environmentOphestra
This improves compatibility. This change also improves error messages. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-06internal/testsuite: move from testOphestra
This structure is a lot less clumsy than the old nix-centric layout. Signed-off-by: Ophestra <cat@gensokyo.uk>