Add XUnit compatible test output

This commit is contained in:
Jakob Borg
2016-01-10 00:31:55 +01:00
parent 1e52cc474f
commit 837fde70ae
3 changed files with 10 additions and 12 deletions

View File

@@ -125,6 +125,15 @@ case "${1:-default}" in
fi
;;
test-xunit)
ulimit -t 600 &>/dev/null || true
ulimit -d 512000 &>/dev/null || true
ulimit -m 512000 &>/dev/null || true
(GOPATH="$(pwd)/Godeps/_workspace:$GOPATH" go test -v -race ./lib/... ./cmd/... || true) > tests.out
go2xunit -output tests.xml -fail < tests.out
;;
docker-all)
img=${DOCKERIMG:-syncthing/build:latest}
docker run --rm -h syncthing-builder -u $(id -u) -t \