зеркало из https://github.com/github/vitess-gh.git
go/Makefile moved to top, now also runs all tests by default.
LGTM Mike.
This commit is contained in:
Родитель
e3f0ba06ae
Коммит
38ad421e31
|
@ -0,0 +1,69 @@
|
|||
# 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
|
||||
|
||||
all: build unit_test occ_test integration_test
|
||||
|
||||
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
|
||||
|
||||
# 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
|
||||
# cd go/vt/sqlparser; go test
|
||||
cd go/vt/tabletmanager; go test
|
||||
# cd go/vt/tabletserver; go test
|
||||
# cd go/vt/wrangler; go test
|
||||
# cd go/zk; go test
|
||||
# cd go/zk/zkctl; go test
|
||||
|
||||
# put a custom dbtest.json in your HOME directory if required
|
||||
occ_test:
|
||||
if [ -e $$HOME/dbtest.json ]; then \
|
||||
cd py/vttest ; ./occ_test.py -c $$HOME/dbtest.json ; \
|
||||
else \
|
||||
cd py/vttest ; ./occ_test.py ; \
|
||||
fi
|
||||
|
||||
# export VT_TEST_FLAGS=-v for instance
|
||||
integration_test:
|
||||
cd test ; ./sharded.py $$VT_TEST_FLAGS
|
||||
cd test ; ./tabletmanager.py $$VT_TEST_FLAGS
|
||||
cd test ; ./zkocc.py $$VT_TEST_FLAGS
|
||||
|
||||
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
|
53
go/Makefile
53
go/Makefile
|
@ -1,53 +0,0 @@
|
|||
# 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
|
||||
|
||||
all:
|
||||
cd cmd/mysqlctl; go build
|
||||
cd cmd/normalizer; go build
|
||||
cd cmd/vtaction; go build
|
||||
cd cmd/vtclient2; go build
|
||||
cd cmd/vtctl; go build
|
||||
cd cmd/vtocc; go build
|
||||
cd cmd/vttablet; go build
|
||||
cd cmd/zk; go build
|
||||
cd cmd/zkctl; go build
|
||||
|
||||
# alphabetically ordered tests
|
||||
# the ones that are commented out don't pass
|
||||
test:
|
||||
cd bson; go test
|
||||
cd bytes2; go test
|
||||
cd cache; go test
|
||||
cd hack; go test
|
||||
# cd logfile; go test
|
||||
if [ -e "/usr/bin/memcached" ]; then \
|
||||
cd memcache; exec go test ; \
|
||||
fi
|
||||
cd pools; go test
|
||||
cd rpcplus; go test
|
||||
cd rpcplus/jsonrpc; go test
|
||||
cd rpcwrap/auth; go test
|
||||
cd timer; go test
|
||||
cd umgmt; go test
|
||||
# cd vt/client2; go test
|
||||
cd vt/mysqlctl; go test
|
||||
cd vt/sqlparser; go test
|
||||
cd vt/tabletmanager; go test
|
||||
cd vt/tabletserver; go test
|
||||
# cd vt/wrangler; go test
|
||||
# cd zk; go test
|
||||
# cd zk/zkctl; go test
|
||||
|
||||
clean:
|
||||
cd cmd/mysqlctl; go clean
|
||||
cd cmd/normalizer; go clean
|
||||
cd cmd/vtaction; go clean
|
||||
cd cmd/vtclient2; go clean
|
||||
cd cmd/vtctl; go clean
|
||||
cd cmd/vtocc; go clean
|
||||
cd cmd/vttablet; go clean
|
||||
cd cmd/zk; go clean
|
||||
cd cmd/zkctl; go clean
|
Загрузка…
Ссылка в новой задаче