spacepaste

  1.  
  2. #!/bin/sh
  3. wd=`pwd`
  4. export PATH="$wd/go/bin":/bin:/usr/bin
  5. export GOROOT="$wd/go"
  6. for f in go*.tar.gz; do
  7. echo `basename "$f" | sed 's,^go,,;s,\.linux.*,,'`
  8. tar xf "$f"
  9. go test -run=XXX -bench=Regexp -benchmem
  10. rm -rf ./go/
  11. done
  12.