hack/module.sh learns codegen_verify

This commit is contained in:
aram price
2020-08-14 17:34:21 -07:00
committed by Andrew Keesler
parent a456daa0b2
commit 7fa8f7797a
2 changed files with 32 additions and 2 deletions

View File

@@ -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
}