2013-10-03 17:11:48 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2013-10-07 15:13:39 +00:00
|
|
|
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
|
2013-10-07 15:13:39 +00:00
|
|
|
fi
|
2013-10-08 19:50:59 +00:00
|
|
|
popd
|
2013-10-07 15:13:39 +00:00
|
|
|
|
2013-10-03 17:11:48 +00:00
|
|
|
go get launchpad.net/gocheck
|
|
|
|
|
2013-10-08 21:17:05 +00:00
|
|
|
go fmt $packages
|
|
|
|
|
2013-10-06 03:24:42 +00:00
|
|
|
./build.sh
|
|
|
|
|
2013-10-08 21:38:56 +00:00
|
|
|
echo "Running tests for packages: $packages"
|
|
|
|
|
|
|
|
go test $packages -v -gocheck.v
|