Try to set some reasonable resource limits when running tests

This commit is contained in:
Jakob Borg 2014-08-30 10:02:10 +02:00
parent 258ad4352e
commit c2120a16da

View File

@ -12,6 +12,10 @@ case "${1:-default}" in
;;
test)
ulimit -t 60 || true
ulimit -d 512000 || true
ulimit -m 512000 || true
go run build.go "$1"
;;
@ -64,6 +68,10 @@ case "${1:-default}" in
;;
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/AlekSi/gocov-xml