X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4bd414c0d951a5efc0927ef467f193b3e406a927..060d38d627bd1e51dd2b3c6e7de9af6aa7d7b6f3:/sdk/cwl/test_with_arvbox.sh diff --git a/sdk/cwl/test_with_arvbox.sh b/sdk/cwl/test_with_arvbox.sh index 0fda2b8461..88860c04eb 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,19 +11,33 @@ fi reset_container=1 leave_running=0 +config=dev +tag="latest" while test -n "$1" ; do arg="$1" case "$arg" in --no-reset-container) reset_container=0 - shift; + shift ;; --leave-running) leave_running=1 - shift; + shift + ;; + --config) + config=$2 + shift ; shift + ;; + --tag) + tag=$2 + shift ; shift + ;; + -h|--help) + echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag]" + exit ;; - -*) + *) break ;; esac @@ -30,19 +49,22 @@ fi if test $reset_container = 1 ; then 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 <