X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f25b37a8e72716478e7cfae11ab5bf13b7051694..HEAD:/sdk/cwl/test_with_arvbox.sh diff --git a/sdk/cwl/test_with_arvbox.sh b/sdk/cwl/test_with_arvbox.sh index 6de404f448..51d64b3f84 100755 --- a/sdk/cwl/test_with_arvbox.sh +++ b/sdk/cwl/test_with_arvbox.sh @@ -5,8 +5,10 @@ set -x +cwldir=$(readlink -f $(dirname $0)) + if ! which arvbox >/dev/null ; then - export PATH=$PATH:$(readlink -f $(dirname $0)/../../tools/arvbox/bin) + export PATH=$PATH:$cwldir/../../tools/arvbox/bin fi reset_container=1 @@ -14,9 +16,9 @@ leave_running=0 config=dev devcwl=0 tag="latest" -pythoncmd=python3 suite=conformance runapi=containers +reinstall=0 while test -n "$1" ; do arg="$1" @@ -45,8 +47,12 @@ while test -n "$1" ; do devcwl=1 shift ;; + --reinstall) + reinstall=1 + shift + ;; --pythoncmd) - pythoncmd=$2 + echo "warning: --pythoncmd option is no longer supported; ignored" >&2 shift ; shift ;; --suite) @@ -58,7 +64,7 @@ while test -n "$1" ; do 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-v1.0|conformance-*)]" + echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag] [--build] [--suite (integration|conformance-v1.0|conformance-*)]" exit ;; *) @@ -83,26 +89,28 @@ 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 $cwldir/tests $ARVBOX_CONTAINER:/usr/src/arvados/sdk/cwl + arvbox pipe </tmp/cwltest/arv-cwl-jobs </tmp/cwltest/arv-cwl-containers <