test: run go tests with race detector

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-16 02:07:42 +09:00
parent 273d97af85
commit ae522ab364

View File

@@ -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'
'')
];