test: run go tests with race detector
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
273d97af85
commit
ae522ab364
@ -22,7 +22,7 @@ nixosTest {
|
|||||||
chmod -R +w "$WORK"
|
chmod -R +w "$WORK"
|
||||||
cd "$WORK"
|
cd "$WORK"
|
||||||
${self.packages.${system}.fhs}/bin/fortify-fhs -c \
|
${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'
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user