X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e17f20cd7d10d81b0dcb5522a3e93305b318da8f..427b630d31d8427b09d5a022f4c699111497915f:/sdk/cwl/test_with_arvbox.sh diff --git a/sdk/cwl/test_with_arvbox.sh b/sdk/cwl/test_with_arvbox.sh index 37eb5171eb..51d64b3f84 100755 --- a/sdk/cwl/test_with_arvbox.sh +++ b/sdk/cwl/test_with_arvbox.sh @@ -5,17 +5,20 @@ 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 leave_running=0 config=dev +devcwl=0 tag="latest" -pythoncmd=python suite=conformance runapi=containers +reinstall=0 while test -n "$1" ; do arg="$1" @@ -40,8 +43,16 @@ while test -n "$1" ; do build=1 shift ;; + --devcwl) + devcwl=1 + shift + ;; + --reinstall) + reinstall=1 + shift + ;; --pythoncmd) - pythoncmd=$2 + echo "warning: --pythoncmd option is no longer supported; ignored" >&2 shift ; shift ;; --suite) @@ -53,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)]" + echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag] [--build] [--suite (integration|conformance-v1.0|conformance-*)]" exit ;; *) @@ -66,6 +77,10 @@ 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 @@ -74,73 +89,106 @@ 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 <