linux-test-su.sh 358 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. # This script is used to run the tests under linux as root
  3. #
  4. # Usage:
  5. # linux-test-su.sh goPath goBinPath
  6. #
  7. # goPath is the standard GOPATH
  8. # goBinPath is the location of go
  9. #
  10. # Typical usage:
  11. # sudo ./linux-test-su.sh $GOPATH `which go`
  12. export GOPATH=$1
  13. export GOROOT=`dirname $(dirname $2)`
  14. $GOROOT/bin/go test -v -tags su ./...