mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Try to set some reasonable resource limits when running tests
This commit is contained in:
parent
258ad4352e
commit
c2120a16da
8
build.sh
8
build.sh
@ -12,6 +12,10 @@ case "${1:-default}" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
test)
|
test)
|
||||||
|
ulimit -t 60 || true
|
||||||
|
ulimit -d 512000 || true
|
||||||
|
ulimit -m 512000 || true
|
||||||
|
|
||||||
go run build.go "$1"
|
go run build.go "$1"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -64,6 +68,10 @@ case "${1:-default}" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
test-cov)
|
test-cov)
|
||||||
|
ulimit -t 60 || true
|
||||||
|
ulimit -d 512000 || true
|
||||||
|
ulimit -m 512000 || true
|
||||||
|
|
||||||
go get github.com/axw/gocov/gocov
|
go get github.com/axw/gocov/gocov
|
||||||
go get github.com/AlekSi/gocov-xml
|
go get github.com/AlekSi/gocov-xml
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user