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 13export GOPATH=$1 14export GOROOT=`dirname $(dirname $2)` 15$GOROOT/bin/go test -v -tags su ./... 16