File: test

package info (click to toggle)
acbuild 0.4.0+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 740 kB
  • sloc: sh: 170; makefile: 24
file content (18 lines) | stat: -rwxr-xr-x 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
set -e

# Gets the directory that this script is stored in.
# https://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

ORG_PATH="github.com/appc"
REPO_PATH="${ORG_PATH}/acbuild"
TESTS_PATH="${REPO_PATH}/tests"

export ACBUILD_BIN="${DIR}/bin/acbuild"
export GOPATH=${DIR}/Godeps/_workspace:${DIR}/gopath

source "${DIR}/gopath/src/${REPO_PATH}/build"

go test ${REPO_PATH}/acbuild
go test "${TESTS_PATH}" "$@"