diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-16 02:07:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-16 02:07:42 +0900 |
| commit | ae522ab36473ab91f12af3b9d0ee0afced61c02c (patch) | |
| tree | 16b45deeb8ccfb95134f2253ee6d1d6a04932ce2 /test/default.nix | |
| parent | 273d97af8502059193ccb6a188422f9d22eaf106 (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.nix | 2 |
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' '') ]; |
