tile38/test.sh

19 lines
268 B
Bash
Executable File

#!/bin/bash
set -e
cd $(dirname "${BASH_SOURCE[0]}")
WD=$(pwd)
./build.sh
TMP="$(mktemp -d -t data-test.XXXX)"
./tile38-server -p 9876 -d "$TMP" -q &
PID=$!
function end {
rm -rf "$TMP"
kill $PID &
}
trap end EXIT
go test $(go list ./... | grep -v /vendor/)