mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Remove defunct build_cov target.
Signed-off-by: James Blair <mail@jamesblair.net>
This commit is contained in:
parent
4b87bb1852
commit
0bd94bbae5
@ -8,7 +8,7 @@ set -o pipefail
|
||||
LOG_FILE=${1:-test-coverage.log}
|
||||
|
||||
# We collect the coverage
|
||||
COVERDIR=covdir PASSES='build build_cov cov' ./scripts/test.sh 2>&1 | tee "${LOG_FILE}"
|
||||
COVERDIR=covdir PASSES='build cov' ./scripts/test.sh 2>&1 | tee "${LOG_FILE}"
|
||||
test_success="$?"
|
||||
|
||||
# We try to upload whatever we have:
|
||||
|
@ -29,7 +29,7 @@
|
||||
#
|
||||
# Run code coverage
|
||||
# COVERDIR must either be a absolute path or a relative path to the etcd root
|
||||
# $ COVERDIR=coverage PASSES="build build_cov cov" ./scripts/test.sh
|
||||
# $ COVERDIR=coverage PASSES="build cov" ./scripts/test.sh
|
||||
# $ go tool cover -html ./coverage/cover.out
|
||||
set -e
|
||||
|
||||
@ -168,13 +168,6 @@ function grpcproxy_e2e_pass {
|
||||
|
||||
################# COVERAGE #####################################################
|
||||
|
||||
# Builds artifacts used by tests/e2e in coverage mode.
|
||||
function build_cov_pass {
|
||||
run_for_module "server" run go test -tags cov -c -covermode=set -coverpkg="./..." -o "../bin/etcd_test"
|
||||
run_for_module "etcdctl" run go test -tags cov -c -covermode=set -coverpkg="./..." -o "../bin/etcdctl_test"
|
||||
run_for_module "etcdutl" run go test -tags cov -c -covermode=set -coverpkg="./..." -o "../bin/etcdutl_test"
|
||||
}
|
||||
|
||||
# pkg_to_coverflag [prefix] [pkgs]
|
||||
# produces name of .coverprofile file to be used for tests of this package
|
||||
function pkg_to_coverprofileflag {
|
||||
@ -261,11 +254,6 @@ function cov_pass {
|
||||
return 255
|
||||
fi
|
||||
|
||||
if [ ! -f "bin/etcd_test" ]; then
|
||||
log_error "etcd_test binary not found. Call: PASSES='build_cov' ./scripts/test.sh"
|
||||
return 255
|
||||
fi
|
||||
|
||||
local coverdir
|
||||
coverdir=$(readlink -f "${COVERDIR}")
|
||||
mkdir -p "${coverdir}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user