X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1b44d67f865d92e1610fa283e7fa27cf91ed6a1d..c56d04266de4e97b1b861c068309476ca562d72f:/sdk/cwl/test_with_arvbox.sh diff --git a/sdk/cwl/test_with_arvbox.sh b/sdk/cwl/test_with_arvbox.sh index 5501e29645..39c834ed60 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) @@ -7,7 +12,10 @@ fi reset_container=1 leave_running=0 config=dev -docker_pull=1 +tag="latest" +pythoncmd=python +suite=conformance +runapi=containers while test -n "$1" ; do arg="$1" @@ -24,12 +32,28 @@ while test -n "$1" ; do config=$2 shift ; shift ;; - --no-docker-pull) - docker_pull=0 + --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] [--no-docker-pull] [--config dev|localdemo]" + echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag] [--build] [--pythoncmd python(2|3)] [--suite (integration|conformance-v1.0|conformance-v1.1)]" exit ;; *) @@ -42,34 +66,71 @@ if test -z "$ARVBOX_CONTAINER" ; then export ARVBOX_CONTAINER=cwltest fi +if test "$suite" = "conformance" ; then + suite=conformance-v1.0 +fi + if test $reset_container = 1 ; then + arvbox stop + docker rm $ARVBOX_CONTAINER arvbox reset -f fi -arvbox start $config +arvbox start $config $tag arvbox pipe </tmp/cwltest/arv-cwl-jobs <