command: |
uname -a
go version
- go test -race ./...
+ go test -parallel 1 -race ./...
# iOS
ios:
export PATH=$PATH:/usr/local/Cellar/go/*/bin
uname -a
go version
- go test -race ./...
+ go test -parallel 1 -race ./...
# This is just Linux x86_64; also need to get a Go with GOOS=android, but
# there aren't any pre-built versions of that on the Go site. Idk, disable for
# uname -a
# export PATH=/usr/local/go/bin:$PATH
# go version
- # go test -race ./...
+ # go test -parallel 1 -race ./...
#
# run tests as user "cirrus" instead of root
- pw useradd cirrus -m
- chown -R cirrus:cirrus .
- - sudo -u cirrus go test -race ./...
+ - sudo -u cirrus go test -parallel 1 -race ./...
- name: test
run: |
- go test -race ./...
+ go test -parallel 1 -race ./...
# Test gccgo
testgcc:
- name: test
run: |
sudo apt-get -y install gccgo-12
- go-12 test ./...
+ go-12 test -parallel 1 ./...
# Test only the latest Go version on macOS; we use the macOS builders for BSD
# and illumos, and GitHub doesn't allow many of them to run concurrently. If
- name: test
run: |
- go test -race ./...
+ go test -parallel 1 -race ./...
# OpenBSD; no -race as the VM doesn't include the comp set.
#
prepare: pkg_add go
run: |
useradd -mG wheel action
- su action -c 'go test ./...'
+ su action -c 'go test -parallel 1 ./...'
# NetBSD
testNetBSD:
# TODO: no -race for the same reason as OpenBSD (the timing; it does run).
run: |
useradd -mG wheel action
- su action -c 'go120 test ./...'
+ su action -c 'go120 test -parallel 1 ./...'
# illumos
testillumos:
useradd action
export GOCACHE=/tmp/go-cache
export GOPATH=/tmp/go-path
- su action -c '/opt/ooce/go-1.19/bin/go test ./...'
+ su action -c '/opt/ooce/go-1.19/bin/go test -parallel 1 ./...'
# Older Debian 6, for old Linux kernels.
testDebian6:
done
vagrant up
for t in *.test; do
- vagrant ssh -c "/vagrant/$t"
+ vagrant ssh -c "/vagrant/$t -test.parallel 1"
done