diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-16 20:58:08 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-16 20:58:08 +0900 |
| commit | 60c10c3f4ae9b3093e75a22d03d6a1d0862a2f25 (patch) | |
| tree | 281391e41c696daf1fbee47c4572aca86a6c2092 /test.nix | |
| parent | 468696f611178598c8cc6b918f134e92e03e8c29 (diff) | |
nix: run integration tests with race detector
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test.nix')
| -rw-r--r-- | test.nix | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -3,6 +3,7 @@ self, home-manager, nixosTest, + fortify, }: nixosTest { @@ -110,6 +111,18 @@ nixosTest { environment.fortify = { enable = true; + package = fortify.overrideAttrs (previousAttrs: { + GOFLAGS = previousAttrs.GOFLAGS ++ [ "-race" ]; + + # fsu does not like cgo + disallowedReferences = previousAttrs.disallowedReferences ++ [ fortify ]; + postInstall = + previousAttrs.postInstall + + '' + cp -a "${fortify}/libexec/fsu" "$out/libexec/fsu" + sed -i 's:${fortify}:${placeholder "out"}:' "$out/libexec/fsu" + ''; + }); stateDir = "/var/lib/fortify"; users.alice = 0; |
