Skip to content

Instantly share code, notes, and snippets.

@davecheney
Created September 11, 2013 10:53
Show Gist options
  • Select an option

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

Select an option

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