Skip to content

Instantly share code, notes, and snippets.

@davecheney
Created August 25, 2012 12:12
Show Gist options
  • Save davecheney/3464730 to your computer and use it in GitHub Desktop.
Save davecheney/3464730 to your computer and use it in GitHub Desktop.
stress test your packages
#!/bin/bash
go test -c
PKG=$(basename $(pwd))
set -e
while true ; do
export 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