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:
|
2013-12-25 02:28:19 +04:00
|
|
|
go install ./go/...
|
|
|
|
|
|
|
|
clean:
|
|
|
|
go clean -i ./go/...
|
2012-11-01 02:29:41 +04:00
|
|
|
|
|
|
|
unit_test:
|
2013-07-27 04:02:14 +04:00
|
|
|
go test ./go/...
|
2012-11-01 02:29:41 +04:00
|
|
|
|
2013-10-29 15:40:01 +04:00
|
|
|
unit_test_race:
|
|
|
|
go test -race ./go/...
|
|
|
|
|
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
|
2014-03-08 02:45:50 +04:00
|
|
|
time test/sensitive_info_test.py
|
2012-11-01 02:29:41 +04:00
|
|
|
|
|
|
|
# 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
|
2014-01-07 03:46:55 +04:00
|
|
|
cd test ; echo "clone test"; time ./clone.py $$VT_TEST_FLAGS
|
2014-01-03 21:44:38 +04:00
|
|
|
cd test ; echo "reparent test"; time ./reparent.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
|
2014-01-10 01:56:06 +04:00
|
|
|
cd test ; echo "resharding_bytes test"; time ./resharding_bytes.py $$VT_TEST_FLAGS
|
2013-08-17 01:31:11 +04:00
|
|
|
cd test ; echo "vtdb test"; time ./vtdb_test.py $$VT_TEST_FLAGS
|
2014-02-13 03:59:45 +04:00
|
|
|
cd test ; echo "vtgate test"; time ./vtgate_test.py $$VT_TEST_FLAGS
|
2014-01-04 01:53:03 +04:00
|
|
|
cd test ; echo "keyrange test"; time ./keyrange_test.py $$VT_TEST_FLAGS
|
2014-02-13 03:59:45 +04:00
|
|
|
cd test ; echo "vertical_split test"; time ./vertical_split.py $$VT_TEST_FLAGS
|
|
|
|
cd test ; echo "vertical_split_vtgate test"; time ./vertical_split_vtgate.py $$VT_TEST_FLAGS
|
|
|
|
cd test ; echo "initial_sharding test"; time ./initial_sharding.py $$VT_TEST_FLAGS
|
|
|
|
cd test ; echo "initial_sharding_bytes test"; time ./initial_sharding_bytes.py $$VT_TEST_FLAGS
|
2014-02-21 01:35:49 +04:00
|
|
|
cd test ; echo "keyspace_test test"; time ./keyspace_test.py $$VT_TEST_FLAGS
|
2014-03-22 02:55:49 +04:00
|
|
|
|
|
|
|
bson:
|
|
|
|
bsongen -file ./go/mysql/proto/structs.go -type QueryResult -o ./go/mysql/proto/query_result_bson.go
|
|
|
|
bsongen -file ./go/mysql/proto/structs.go -type Field -o ./go/mysql/proto/field_bson.go
|
2014-03-22 10:38:45 +04:00
|
|
|
bsongen -file ./go/vt/key/key.go -type KeyRange -o ./go/vt/key/key_range_bson.go
|
2014-04-04 01:51:04 +04:00
|
|
|
bsongen -file ./go/vt/key/key.go -type KeyspaceId -o ./go/vt/key/keyspace_id_bson.go
|
|
|
|
bsongen -file ./go/vt/key/key.go -type KeyspaceIdType -o ./go/vt/key/keyspace_id_type_bson.go
|
2014-03-23 11:26:24 +04:00
|
|
|
bsongen -file ./go/vt/tabletserver/proto/structs.go -type Query -o ./go/vt/tabletserver/proto/query_bson.go
|
|
|
|
bsongen -file ./go/vt/tabletserver/proto/structs.go -type Session -o ./go/vt/tabletserver/proto/session_bson.go
|
|
|
|
bsongen -file ./go/vt/tabletserver/proto/structs.go -type BoundQuery -o ./go/vt/tabletserver/proto/bound_query_bson.go
|
|
|
|
bsongen -file ./go/vt/tabletserver/proto/structs.go -type QueryList -o ./go/vt/tabletserver/proto/query_list_bson.go
|
|
|
|
bsongen -file ./go/vt/tabletserver/proto/structs.go -type QueryResultList -o ./go/vt/tabletserver/proto/query_result_list_bson.go
|
|
|
|
bsongen -file ./go/vt/vtgate/proto/vtgate_proto.go -type QueryShard -o ./go/vt/vtgate/proto/query_shard_bson.go
|
|
|
|
bsongen -file ./go/vt/vtgate/proto/vtgate_proto.go -type BatchQueryShard -o ./go/vt/vtgate/proto/batch_query_shard_bson.go
|
2014-04-04 01:51:04 +04:00
|
|
|
bsongen -file ./go/vt/vtgate/proto/vtgate_proto.go -type KeyspaceIdQuery -o ./go/vt/vtgate/proto/keyspace_id_query_bson.go
|
|
|
|
bsongen -file ./go/vt/vtgate/proto/vtgate_proto.go -type KeyRangeQuery -o ./go/vt/vtgate/proto/key_range_query_bson.go
|
|
|
|
bsongen -file ./go/vt/vtgate/proto/vtgate_proto.go -type EntityIdsQuery -o ./go/vt/vtgate/proto/entity_ids_query_bson.go
|
|
|
|
bsongen -file ./go/vt/vtgate/proto/vtgate_proto.go -type KeyspaceIdBatchQuery -o ./go/vt/vtgate/proto/keyspace_id_batch_query_bson.go
|
|
|
|
bsongen -file ./go/vt/vtgate/proto/vtgate_proto.go -type Session -o ./go/vt/vtgate/proto/session_bson.go
|
|
|
|
bsongen -file ./go/vt/vtgate/proto/vtgate_proto.go -type ShardSession -o ./go/vt/vtgate/proto/shard_session_bson.go
|
|
|
|
bsongen -file ./go/vt/vtgate/proto/vtgate_proto.go -type QueryResult -o ./go/vt/vtgate/proto/query_result_bson.go
|
2014-03-23 13:15:16 +04:00
|
|
|
bsongen -file ./go/vt/topo/srvshard.go -type SrvShard -o ./go/vt/topo/srvshard_bson.go
|
|
|
|
bsongen -file ./go/vt/topo/srvshard.go -type SrvKeyspace -o ./go/vt/topo/srvkeyspace_bson.go
|
|
|
|
bsongen -file ./go/vt/topo/srvshard.go -type KeyspacePartition -o ./go/vt/topo/keyspace_partition_bson.go
|
2014-04-04 01:51:04 +04:00
|
|
|
bsongen -file ./go/vt/topo/tablet.go -type TabletType -o ./go/vt/topo/tablet_type_bson.go
|
2014-03-24 02:26:15 +04:00
|
|
|
bsongen -file ./go/vt/binlog/proto/binlog_transaction.go -type BinlogTransaction -o ./go/vt/binlog/proto/binlog_transaction_bson.go
|
|
|
|
bsongen -file ./go/vt/binlog/proto/binlog_transaction.go -type Statement -o ./go/vt/binlog/proto/statement_bson.go
|
|
|
|
bsongen -file ./go/vt/binlog/proto/stream_event.go -type StreamEvent -o ./go/vt/binlog/proto/stream_event_bson.go
|
2014-03-24 08:48:50 +04:00
|
|
|
bsongen -file ./go/zk/zkocc_structs.go -type ZkPath -o ./go/zk/zkpath_bson.go
|
|
|
|
bsongen -file ./go/zk/zkocc_structs.go -type ZkPathV -o ./go/zk/zkpathv_bson.go
|
2014-03-24 12:46:05 +04:00
|
|
|
bsongen -file ./go/zk/zkocc_structs.go -type ZkStat -o ./go/zk/zkstat_bson.go
|
|
|
|
bsongen -file ./go/zk/zkocc_structs.go -type ZkNode -o ./go/zk/zknode_bson.go
|
|
|
|
bsongen -file ./go/zk/zkocc_structs.go -type ZkNodeV -o ./go/zk/zknodev_bson.go
|
2014-04-04 01:51:04 +04:00
|
|
|
|