for test-upgrade, import a (hopefully large) mbox file, checking for performance/memory consumption

in the future, it would be good to actually start a mox and read
mailboxes/messages...
This commit is contained in:
Mechiel Lukkien
2023-07-24 11:00:11 +02:00
parent 840f3afb35
commit c0100f44e7
5 changed files with 64 additions and 4 deletions

View File

@ -19,8 +19,10 @@ test-race:
CGO_ENABLED=1 go test -race -shuffle=on -covermode atomic -coverprofile cover.out ./...
go tool cover -html=cover.out -o cover.html
# note: if testdata/upgradetest.mbox.gz exists, its messages will be imported
# during tests. helpful for performance/resource consumption tests.
test-upgrade:
./test-upgrade.sh
nice ./test-upgrade.sh
check:
staticcheck ./...