Skip to content

Instantly share code, notes, and snippets.

@davecheney
Created September 24, 2015 04:19
Show Gist options
  • Select an option

  • Save davecheney/094292fc3addf31fddd1 to your computer and use it in GitHub Desktop.

Select an option

Save davecheney/094292fc3addf31fddd1 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
go test -c -race
# go test -c
PKG=$(basename $(pwd))
while true ; do
# env GOMAXPROCS=$[ 1 + $[ RANDOM % 128 ]] GOTRACEBACK=2 ./$PKG.test $@ 2>&1
env GOMAXPROCS=$[ 1 + $[ RANDOM % 128 ]] ./$PKG.test $@ 2>&1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment