From: Tom Clegg Date: Sat, 20 Sep 2014 03:35:30 +0000 (-0400) Subject: 3894: Add --help message. X-Git-Url: https://git.arvados.org/arvados-dev.git/commitdiff_plain/1b30b40e3b83876ef1d96bcbffb9356dce94c5b7 3894: Add --help message. --- diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh index 9fe3218..852bd43 100755 --- a/jenkins/run-tests.sh +++ b/jenkins/run-tests.sh @@ -1,49 +1,48 @@ #!/bin/bash -# Install and test Arvados components. -# -# Exit non-zero if any tests fail. -# -# Arguments: -# --skip FOO Do not test the FOO component. -# --only FOO Do not test anything except the FOO component. -# WORKSPACE=path Arvados source tree to test. -# CONFIGSRC=path Dir with api server config files to copy into source tree. -# envvar=value Set $envvar to value -# -# Regardless of which components are tested, install all components in -# the usual sequence. (Many test suites depend on other components -# being installed.) -# -# To run a specific Ruby test, set $workbench_test, $apiserver_test or -# $cli_test on the command line: -# -# $ run-tests.sh --only workbench workbench_test=TEST=test/integration/pipeline_instances_test.rb -# -# -# To run a specific Python test set $python_sdk_test or $fuse_test. -# -# $ run-tests.sh --only python_sdk python_sdk_test="--test-suite tests.test_keep_locator" -# -# -# You can also pass "export ARVADOS_DEBUG=1" to enable additional debugging output: -# -# $ run-tests.sh "export ARVADOS_DEBUG=1" -# -# -# Finally, you can skip the installation steps on subsequent runs this way: -# -## First run -# $ run-tests.sh --leave-temp -# -## Subsequent runs: record the values of VENVDIR and GOPATH from the first run, and -# provide them on the command line in subsequent runs: -# -# $ run-tests.sh --skip-install VENVDIR="/tmp/tmp.y3tsTmigio" GOPATH="/tmp/tmp.3r4sSA9F3l" - - -# First make sure to remove any ARVADOS_ variables from the calling environment -# that could interfer with the tests. +read -rd "\000" helpmessage <&2 "$helpmessage" + echo >&2 + exit 1 + ;; --only) only="$1"; shift ;; @@ -120,7 +124,7 @@ do eval $(echo $arg | cut -d= -f1)=\"$(echo $arg | cut -d= -f2-)\" ;; *) - echo >&2 "$0: Unrecognized option: '$arg'" + echo >&2 "$0: Unrecognized option: '$arg'. Try: $0 --help" exit 1 ;; esac