X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/be8fb7271e3a416818cab04498e5b1ebe877b4fe..2c3a6a67bc01241f57e815f4f7e4678bd6eadb03:/sdk/cwl/test_with_arvbox.sh diff --git a/sdk/cwl/test_with_arvbox.sh b/sdk/cwl/test_with_arvbox.sh index 83ba66b2e8..37eb5171eb 100755 --- a/sdk/cwl/test_with_arvbox.sh +++ b/sdk/cwl/test_with_arvbox.sh @@ -1,4 +1,9 @@ #!/bin/sh +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +set -x if ! which arvbox >/dev/null ; then export PATH=$PATH:$(readlink -f $(dirname $0)/../../tools/arvbox/bin) @@ -6,15 +11,50 @@ fi reset_container=1 leave_running=0 +config=dev +tag="latest" +pythoncmd=python +suite=conformance +runapi=containers while test -n "$1" ; do - arg="$1"; shift + arg="$1" case "$arg" in --no-reset-container) reset_container=0 + shift ;; --leave-running) leave_running=1 + shift + ;; + --config) + config=$2 + shift ; shift + ;; + --tag) + tag=$2 + shift ; shift + ;; + --build) + build=1 + shift + ;; + --pythoncmd) + pythoncmd=$2 + shift ; shift + ;; + --suite) + suite=$2 + shift ; shift + ;; + --api) + runapi=$2 + shift ; shift + ;; + -h|--help) + echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag] [--build] [--pythoncmd python(2|3)] [--suite (integration|conformance)]" + exit ;; *) break @@ -27,18 +67,33 @@ if test -z "$ARVBOX_CONTAINER" ; then fi if test $reset_container = 1 ; then + arvbox stop + docker rm $ARVBOX_CONTAINER arvbox reset -f - arvbox build dev fi -arvbox start dev +arvbox start $config $tag arvbox pipe </tmp/cwltest/arv-cwl-jobs </tmp/cwltest/arv-cwl-containers <