mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 09:53:38 -04:00
test: move list of extra tests into separate file
This is a bit easier to edit than directly in the bash script.
This commit is contained in:
parent
10c7bcd50b
commit
f38660b14b
2 changed files with 25 additions and 19 deletions
21
hack/dependency-unit-tests.conf
Normal file
21
hack/dependency-unit-tests.conf
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# These packages get included in the set of packages tested by "make test"
|
||||
# when no explicit WHAT target is specified.
|
||||
#
|
||||
# Which packages to include here is a bit subjective:
|
||||
# - Should be "important". In particular, it should
|
||||
# be compiled into one of our production binaries (use
|
||||
# `go mod why $package` without the vendor prefix) or
|
||||
# be used regularly.
|
||||
# - Should be at risk of breaking because we compile them
|
||||
# differently than upstream (different Go version, different
|
||||
# dependencies).
|
||||
# - Must support being tested outside of their normal source tree.
|
||||
# - Must be reasonably fast.
|
||||
|
||||
# Compiled differently (Go version, dependencies) than in the upstream
|
||||
# repo, therefore worth testing locally.
|
||||
hack/tools/golangci-lint/sigs.k8s.io/logtools/...
|
||||
|
||||
# This is just one package which is known to work.
|
||||
# The goal is to run more.
|
||||
vendor/go.etcd.io/etcd/client/pkg/v3/fileutil
|
||||
|
|
@ -176,25 +176,10 @@ for arg; do
|
|||
done
|
||||
if [[ ${#testcases[@]} -eq 0 ]]; then
|
||||
# If the user passed no targets in, we want ~everything.
|
||||
kube::util::read-array testcases < <(kube::test::find_go_packages)
|
||||
|
||||
# In addition, also test some specific upstream packages.
|
||||
# Which packages to include here is a bit subjective:
|
||||
# - Should be "important". In particular, it should
|
||||
# be compiled into one of our production binaries (use
|
||||
# `go mod why $package` without the vendor prefix) or
|
||||
# be used regularly.
|
||||
# - Should be at risk of breaking because we compile them
|
||||
# differently than upstream (different Go version, different
|
||||
# dependencies).
|
||||
# - Must support being tested outside of their normal source tree.
|
||||
# - Must be reasonably fast.
|
||||
testcases+=(
|
||||
hack/tools/golangci-lint/sigs.k8s.io/logtools/...
|
||||
|
||||
# This is just an one package which is known to work.
|
||||
# The goal is to run more.
|
||||
vendor/go.etcd.io/etcd/client/pkg/v3/fileutil
|
||||
# In addition also test some specific upstream packages.
|
||||
kube::util::read-array testcases < <(
|
||||
kube::test::find_go_packages
|
||||
grep -v -e '^#' -e '^$' "${KUBE_ROOT}/hack/dependency-unit-tests.conf"
|
||||
)
|
||||
else
|
||||
# If the user passed targets, we should normalize them.
|
||||
|
|
|
|||
Loading…
Reference in a new issue