2012-11-01 02:29:41 +04:00
|
|
|
# Copyright 2012, Google Inc. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can
|
|
|
|
# be found in the LICENSE file.
|
|
|
|
|
|
|
|
MAKEFLAGS = -s
|
|
|
|
|
2012-11-29 04:41:43 +04:00
|
|
|
all: build unit_test queryservice_test integration_test
|
2012-11-01 02:29:41 +04:00
|
|
|
|
|
|
|
build:
|
|
|
|
cd go/cmd/mysqlctl; go build
|
|
|
|
cd go/cmd/normalizer; go build
|
|
|
|
cd go/cmd/vtaction; go build
|
|
|
|
cd go/cmd/vtclient2; go build
|
|
|
|
cd go/cmd/vtctl; go build
|
|
|
|
cd go/cmd/vtocc; go build
|
|
|
|
cd go/cmd/vttablet; go build
|
|
|
|
cd go/cmd/zk; go build
|
|
|
|
cd go/cmd/zkctl; go build
|
2012-11-06 02:28:37 +04:00
|
|
|
cd go/cmd/zkocc; go build
|
2012-11-01 02:29:41 +04:00
|
|
|
|
|
|
|
# alphabetically ordered unit tests
|
|
|
|
# the ones that are commented out don't pass
|
|
|
|
unit_test:
|
|
|
|
cd go/bson; go test
|
|
|
|
cd go/bytes2; go test
|
|
|
|
cd go/cache; go test
|
|
|
|
cd go/hack; go test
|
|
|
|
# cd go/logfile; go test
|
|
|
|
if [ -e "/usr/bin/memcached" ]; then \
|
|
|
|
cd go/memcache; exec go test ; \
|
|
|
|
fi
|
|
|
|
cd go/pools; go test
|
|
|
|
cd go/rpcplus; go test
|
|
|
|
cd go/rpcplus/jsonrpc; go test
|
|
|
|
cd go/rpcwrap/auth; go test
|
|
|
|
cd go/timer; go test
|
|
|
|
cd go/umgmt; go test
|
|
|
|
cd go/vt/client2; go test
|
|
|
|
cd go/vt/mysqlctl; go test
|
2012-11-01 02:51:14 +04:00
|
|
|
cd go/vt/sqlparser; go test
|
2012-11-01 02:29:41 +04:00
|
|
|
cd go/vt/tabletmanager; go test
|
|
|
|
# cd go/vt/wrangler; go test
|
|
|
|
# cd go/zk; go test
|
|
|
|
# cd go/zk/zkctl; go test
|
|
|
|
|
2012-11-29 04:41:43 +04:00
|
|
|
queryservice_test:
|
2012-11-02 20:49:07 +04:00
|
|
|
if [ -e "/usr/bin/memcached" ]; then \
|
2012-12-27 03:09:19 +04:00
|
|
|
cd test && \
|
|
|
|
./queryservice_test.py -m -e vttablet && \
|
|
|
|
./queryservice_test.py -m -e vtocc; \
|
2012-11-01 02:29:41 +04:00
|
|
|
else \
|
2012-12-27 03:09:19 +04:00
|
|
|
cd test && \
|
|
|
|
./queryservice_test.py -e vttablet && \
|
|
|
|
./queryservice_test.py -e vtocc; \
|
2012-11-01 02:29:41 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
# export VT_TEST_FLAGS=-v for instance
|
|
|
|
integration_test:
|
2012-11-12 21:40:51 +04:00
|
|
|
cd test ; ./schema.py $$VT_TEST_FLAGS
|
2012-11-01 02:29:41 +04:00
|
|
|
cd test ; ./sharded.py $$VT_TEST_FLAGS
|
|
|
|
cd test ; ./tabletmanager.py $$VT_TEST_FLAGS
|
|
|
|
cd test ; ./zkocc.py $$VT_TEST_FLAGS
|
2012-11-07 01:48:01 +04:00
|
|
|
cd test ; ./connection_test.py
|
2012-12-13 02:33:45 +04:00
|
|
|
cd test ; ./update_stream.py
|
2012-11-01 02:29:41 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
cd go/cmd/mysqlctl; go clean
|
|
|
|
cd go/cmd/normalizer; go clean
|
|
|
|
cd go/cmd/vtaction; go clean
|
|
|
|
cd go/cmd/vtclient2; go clean
|
|
|
|
cd go/cmd/vtctl; go clean
|
|
|
|
cd go/cmd/vtocc; go clean
|
|
|
|
cd go/cmd/vttablet; go clean
|
|
|
|
cd go/cmd/zk; go clean
|
|
|
|
cd go/cmd/zkctl; go clean
|
2012-11-06 02:28:37 +04:00
|
|
|
cd go/cmd/zkocc; go clean
|