influxdb/test.sh

27 lines
379 B
Bash
Raw Normal View History

2013-10-03 17:11:48 +00:00
#!/usr/bin/env bash
set -e
2013-10-03 17:11:48 +00:00
cd `dirname $0`
. exports.sh
2013-10-08 19:50:59 +00:00
pushd src/query
./build_parser.sh
2013-10-08 16:43:46 +00:00
if [ "x`uname`" == "xLinux" ]; then
if ! ./test_memory_leaks.sh; then
2013-10-08 19:50:59 +00:00
echo "ERROR: memory leak detected"
exit 1
2013-10-08 16:43:46 +00:00
fi
fi
2013-10-08 19:50:59 +00:00
popd
2013-10-03 17:11:48 +00:00
go get launchpad.net/gocheck
2013-10-08 21:17:05 +00:00
go fmt $packages
./build.sh
2013-10-08 21:38:56 +00:00
echo "Running tests for packages: $packages"
go test $packages -v -gocheck.v