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
|
2013-07-19 04:58:24 +04:00
|
|
|
cd go/cmd/topo2topo; go build
|
2013-05-07 02:40:58 +04:00
|
|
|
cd go/cmd/vt_binlog_player; go build
|
|
|
|
cd go/cmd/vt_binlog_server; go build
|
2012-11-01 02:29:41 +04:00
|
|
|
cd go/cmd/vtaction; go build
|
2013-09-30 23:22:15 +04:00
|
|
|
cd go/cmd/vtgate; go build
|
2012-11-01 02:29:41 +04:00
|
|
|
cd go/cmd/vtclient2; go build
|
|
|
|
cd go/cmd/vtctl; go build
|
2013-05-14 22:37:08 +04:00
|
|
|
cd go/cmd/vtctld; go build
|
2012-11-01 02:29:41 +04:00
|
|
|
cd go/cmd/vtocc; go build
|
|
|
|
cd go/cmd/vttablet; go build
|
2013-09-06 00:49:42 +04:00
|
|
|
cd go/cmd/vttopo; go build
|
2012-11-01 02:29:41 +04:00
|
|
|
cd go/cmd/zk; go build
|
2013-07-29 21:44:02 +04:00
|
|
|
cd go/cmd/zkclient2; go build
|
2012-11-01 02:29:41 +04:00
|
|
|
cd go/cmd/zkctl; go build
|
2013-05-17 00:37:29 +04:00
|
|
|
cd go/cmd/zkns2pdns; 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:
|
2013-07-27 04:02:14 +04:00
|
|
|
go test ./go/...
|
2012-11-01 02:29:41 +04:00
|
|
|
|
2012-11-29 04:41:43 +04:00
|
|
|
queryservice_test:
|
2013-01-19 23:59:03 +04:00
|
|
|
echo "queryservice test"
|
2012-11-02 20:49:07 +04:00
|
|
|
if [ -e "/usr/bin/memcached" ]; then \
|
2013-01-19 23:59:03 +04:00
|
|
|
time test/queryservice_test.py -m ; \
|
2012-11-01 02:29:41 +04:00
|
|
|
else \
|
2013-01-19 23:59:03 +04:00
|
|
|
time test/queryservice_test.py ; \
|
2012-11-01 02:29:41 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
# export VT_TEST_FLAGS=-v for instance
|
2012-12-28 02:25:51 +04:00
|
|
|
|
2012-11-01 02:29:41 +04:00
|
|
|
integration_test:
|
2013-01-19 23:59:03 +04:00
|
|
|
cd test ; echo "schema test"; time ./schema.py $$VT_TEST_FLAGS
|
|
|
|
cd test ; echo "sharded test"; time ./sharded.py $$VT_TEST_FLAGS
|
|
|
|
cd test ; echo "tabletmanager test"; time ./tabletmanager.py $$VT_TEST_FLAGS
|
2013-07-27 04:02:14 +04:00
|
|
|
cd test ; echo "zkocc test"; time ./zkocc_test.py $$VT_TEST_FLAGS
|
2013-01-19 23:59:03 +04:00
|
|
|
cd test ; echo "updatestream test"; time ./update_stream.py
|
2013-01-26 05:09:32 +04:00
|
|
|
cd test ; echo "rowcache_invalidator test"; time ./rowcache_invalidator.py
|
2013-06-13 04:24:59 +04:00
|
|
|
cd test ; echo "secure test"; time ./secure.py $$VT_TEST_FLAGS
|
2013-08-06 23:26:59 +04:00
|
|
|
cd test ; echo "resharding test"; time ./resharding.py $$VT_TEST_FLAGS
|
2013-08-17 01:31:11 +04:00
|
|
|
cd test ; echo "vtdb test"; time ./vtdb_test.py $$VT_TEST_FLAGS
|
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
|
2013-09-30 23:22:15 +04:00
|
|
|
cd go/cmd/vtgate; go clean
|
2012-11-01 02:29:41 +04:00
|
|
|
cd go/cmd/vtclient2; go clean
|
|
|
|
cd go/cmd/vtctl; go clean
|
|
|
|
cd go/cmd/vtocc; go clean
|
|
|
|
cd go/cmd/vttablet; go clean
|
2013-09-06 00:49:42 +04:00
|
|
|
cd go/cmd/vttopo; go clean
|
2012-11-01 02:29:41 +04:00
|
|
|
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
|