File: linux-test-su.sh

package info (click to toggle)
golang-github-kardianos-service 1.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 324 kB
  • sloc: makefile: 40; sh: 3
file content (15 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
# This script is used to run the tests under linux as root
#
# Usage:
#    linux-test-su.sh goPath goBinPath
#
# goPath is the standard GOPATH
# goBinPath is the location of go
#
# Typical usage:
#    sudo ./linux-test-su.sh $GOPATH `which go`

export GOPATH=$1
export GOROOT=`dirname $(dirname $2)`
$GOROOT/bin/go test -v -tags su ./...