aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/default.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-16 02:07:42 +0900
committerOphestra <cat@gensokyo.uk>2025-03-16 02:07:42 +0900
commitae522ab36473ab91f12af3b9d0ee0afced61c02c (patch)
tree16b45deeb8ccfb95134f2253ee6d1d6a04932ce2 /test/default.nix
parent273d97af8502059193ccb6a188422f9d22eaf106 (diff)
test: run go tests with race detector
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/default.nix')
-rw-r--r--test/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/default.nix b/test/default.nix
index bf3e007a..068ca709 100644
--- a/test/default.nix
+++ b/test/default.nix
@@ -22,7 +22,7 @@ nixosTest {
chmod -R +w "$WORK"
cd "$WORK"
${self.packages.${system}.fhs}/bin/fortify-fhs -c \
- 'go generate ./... && go test ./... && touch /tmp/go-test-ok'
+ 'go generate ./... && go test ${if withRace then "-race" else "-count 16"} ./... && touch /tmp/go-test-ok'
'')
];