From a08f90b161387827bb71ecf828c55b436cf90c2b Mon Sep 17 00:00:00 2001 From: Benjamin Lee Date: Fri, 24 May 2024 17:07:14 -0700 Subject: [PATCH] add a smoke-test to CI for the nix 'default' output I talked to somebody yesterday in #conduwuit:puppygock.gay that was using this output in their system config. The dynamically-linked jemalloc build is quite fragile, and is not tested by anything else in CI. We want to make sure we don't break it again in the future. --- engage.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/engage.toml b/engage.toml index 5d37b60a..1ce015be 100644 --- a/engage.toml +++ b/engage.toml @@ -145,3 +145,15 @@ cargo test \ -- \ --color=always """ + +# Ensure that the flake's default output can build and run without crashing +# +# This is a dynamically-linked jemalloc build, which is a case not covered by +# our other tests. We've had linking problems in the past with dynamic +# jemalloc builds that usually show up as an immediate segfault or "invalid free" +[[task]] +name = "nix-default" +group = "tests" +script = """ +nix run .#default -- --help +"""