mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-07 05:57:02 +00:00
hack/module.sh learns codegen_verify
This commit is contained in:
committed by
Andrew Keesler
parent
a456daa0b2
commit
7fa8f7797a
@@ -37,6 +37,10 @@ function codegen_cmd() {
|
||||
echo "${ROOT}/hack/codegen.sh codegen::generate"
|
||||
}
|
||||
|
||||
function codegen_verify_cmd() {
|
||||
echo "${ROOT}/hack/codegen.sh codegen::verify"
|
||||
}
|
||||
|
||||
# The race detector is slow, so sometimes you don't want to use it
|
||||
function unittest_no_race_cmd() {
|
||||
if [ -x "$(command -v gotest)" ]; then
|
||||
@@ -66,7 +70,7 @@ function with_modules() {
|
||||
|
||||
function usage() {
|
||||
echo "Error: <task> must be specified"
|
||||
echo " do.sh <task> [tidy, lint, test, unittest, unittest_no_race, codegen]"
|
||||
echo " do.sh <task> [tidy, lint, test, unittest, unittest_no_race, codegen, codegen_verify]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -78,6 +82,7 @@ function main() {
|
||||
'unittest') with_modules 'unittest_cmd' ;;
|
||||
'unittest_no_race') with_modules 'unittest_no_race_cmd' ;;
|
||||
'codegen') with_modules 'codegen_cmd' ;;
|
||||
'codegen_verify') with_modules 'codegen_verify_cmd' ;;
|
||||
*) usage ;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user