mirror of
https://github.com/mjl-/mox.git
synced 2025-06-28 07:48:13 +03:00
Run go test with the -fullpath flag
Makes it easy to open the file in subpackages when an error occurs.
This commit is contained in:
parent
a5c64e4361
commit
96667a87eb
32
Makefile
32
Makefile
@ -23,15 +23,15 @@ race: build0
|
|||||||
go build -race
|
go build -race
|
||||||
|
|
||||||
test:
|
test:
|
||||||
CGO_ENABLED=0 go test -shuffle=on -coverprofile cover.out ./...
|
CGO_ENABLED=0 go test -fullpath -shuffle=on -coverprofile cover.out ./...
|
||||||
go tool cover -html=cover.out -o cover.html
|
go tool cover -html=cover.out -o cover.html
|
||||||
|
|
||||||
test-race:
|
test-race:
|
||||||
CGO_ENABLED=1 go test -race -shuffle=on -covermode atomic -coverprofile cover.out ./...
|
CGO_ENABLED=1 go test -fullpath -race -shuffle=on -covermode atomic -coverprofile cover.out ./...
|
||||||
go tool cover -html=cover.out -o cover.html
|
go tool cover -html=cover.out -o cover.html
|
||||||
|
|
||||||
test-more:
|
test-more:
|
||||||
TZ= CGO_ENABLED=0 go test -shuffle=on -count 2 ./...
|
TZ= CGO_ENABLED=0 go test -fullpath -shuffle=on -count 2 ./...
|
||||||
|
|
||||||
# note: if testdata/upgradetest.mbox.gz exists, its messages will be imported
|
# note: if testdata/upgradetest.mbox.gz exists, its messages will be imported
|
||||||
# during tests. helpful for performance/resource consumption tests.
|
# during tests. helpful for performance/resource consumption tests.
|
||||||
@ -70,19 +70,19 @@ check-shadow:
|
|||||||
CGO_ENABLED=0 go vet -tags xr -vettool=$$(which shadow) rfc/xr.go 2>&1 | grep -v '"err"'
|
CGO_ENABLED=0 go vet -tags xr -vettool=$$(which shadow) rfc/xr.go 2>&1 | grep -v '"err"'
|
||||||
|
|
||||||
fuzz:
|
fuzz:
|
||||||
go test -fuzz FuzzParseSignature -fuzztime 5m ./dkim
|
go test -fullpath -fuzz FuzzParseSignature -fuzztime 5m ./dkim
|
||||||
go test -fuzz FuzzParseRecord -fuzztime 5m ./dkim
|
go test -fullpath -fuzz FuzzParseRecord -fuzztime 5m ./dkim
|
||||||
go test -fuzz . -fuzztime 5m ./dmarc
|
go test -fullpath -fuzz . -fuzztime 5m ./dmarc
|
||||||
go test -fuzz . -fuzztime 5m ./dmarcrpt
|
go test -fullpath -fuzz . -fuzztime 5m ./dmarcrpt
|
||||||
go test -fuzz . -parallel 1 -fuzztime 5m ./imapserver
|
go test -fullpath -fuzz . -parallel 1 -fuzztime 5m ./imapserver
|
||||||
go test -fuzz . -parallel 1 -fuzztime 5m ./junk
|
go test -fullpath -fuzz . -parallel 1 -fuzztime 5m ./junk
|
||||||
go test -fuzz FuzzParseRecord -fuzztime 5m ./mtasts
|
go test -fullpath -fuzz FuzzParseRecord -fuzztime 5m ./mtasts
|
||||||
go test -fuzz FuzzParsePolicy -fuzztime 5m ./mtasts
|
go test -fullpath -fuzz FuzzParsePolicy -fuzztime 5m ./mtasts
|
||||||
go test -fuzz . -fuzztime 5m ./smtp
|
go test -fullpath -fuzz . -fuzztime 5m ./smtp
|
||||||
go test -fuzz . -parallel 1 -fuzztime 5m ./smtpserver
|
go test -fullpath -fuzz . -parallel 1 -fuzztime 5m ./smtpserver
|
||||||
go test -fuzz . -fuzztime 5m ./spf
|
go test -fullpath -fuzz . -fuzztime 5m ./spf
|
||||||
go test -fuzz FuzzParseRecord -fuzztime 5m ./tlsrpt
|
go test -fullpath -fuzz FuzzParseRecord -fuzztime 5m ./tlsrpt
|
||||||
go test -fuzz FuzzParseMessage -fuzztime 5m ./tlsrpt
|
go test -fullpath -fuzz FuzzParseMessage -fuzztime 5m ./tlsrpt
|
||||||
|
|
||||||
govendor:
|
govendor:
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user