X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/31d76600cdb691251d0823cc6be601d958b4e1a4..37044d922164855ba5cc443e775037ab12cdbf95:/sdk/cwl/test_with_arvbox.sh diff --git a/sdk/cwl/test_with_arvbox.sh b/sdk/cwl/test_with_arvbox.sh index b5a3e9930d..55099afdf7 100755 --- a/sdk/cwl/test_with_arvbox.sh +++ b/sdk/cwl/test_with_arvbox.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 set -x @@ -9,7 +12,12 @@ fi reset_container=1 leave_running=0 config=dev -tag="" +devcwl=0 +tag="latest" +pythoncmd=python3 +suite=conformance +runapi=containers +reinstall=0 while test -n "$1" ; do arg="$1" @@ -30,8 +38,32 @@ while test -n "$1" ; do tag=$2 shift ; shift ;; + --build) + build=1 + shift + ;; + --devcwl) + devcwl=1 + shift + ;; + --reinstall) + reinstall=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]" + echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag] [--build] [--pythoncmd python(2|3)] [--suite (integration|conformance-v1.0|conformance-*)]" exit ;; *) @@ -44,50 +76,127 @@ 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 $tag +# Copy the integration test suite from our local arvados clone instead +# of using the one inside the container, so we can make changes to the +# integration tests without necessarily having to rebuilding the +# container image. +docker cp -L $(readlink -f $(dirname $0)/tests) $ARVBOX_CONTAINER:/usr/src/arvados/sdk/cwl + arvbox pipe </tmp/cwltest/arv-cwl-jobs </tmp/cwltest/arv-cwl-containers <