X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/caeb94881de75f2f8ee0156951c7f54006499e15..81693ee04f18e68558c9206705ef589cca2460b0:/sdk/cwl/test_with_arvbox.sh diff --git a/sdk/cwl/test_with_arvbox.sh b/sdk/cwl/test_with_arvbox.sh index aa98252c0c..37eb5171eb 100755 --- a/sdk/cwl/test_with_arvbox.sh +++ b/sdk/cwl/test_with_arvbox.sh @@ -14,6 +14,8 @@ leave_running=0 config=dev tag="latest" pythoncmd=python +suite=conformance +runapi=containers while test -n "$1" ; do arg="$1" @@ -42,8 +44,16 @@ while test -n "$1" ; do 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] [--build] [--pythoncmd python[23]]" + echo "$0 [--no-reset-container] [--leave-running] [--config dev|localdemo] [--tag docker_tag] [--build] [--pythoncmd python(2|3)] [--suite (integration|conformance)]" exit ;; *) @@ -77,10 +87,12 @@ if test $config = dev ; then pip_install \$(ls -r dist/arvados-cwl-runner-*.tar.gz | head -n1) fi +set -x + if [ \$PYCMD = "python3" ]; then pip3 install cwltest else - pip3 install cwltest + pip install cwltest fi mkdir -p /tmp/cwltest @@ -119,7 +131,12 @@ EOF2 chmod +x /tmp/cwltest/arv-cwl-containers env -exec ./run_test.sh RUNNER=/tmp/cwltest/arv-cwl-containers EXTRA=--compute-checksum $@ +if [[ "$suite" = "conformance" ]] ; then + exec ./run_test.sh RUNNER=/tmp/cwltest/arv-cwl-${runapi} EXTRA=--compute-checksum $@ +elif [[ "$suite" = "integration" ]] ; then + cd /usr/src/arvados/sdk/cwl/tests + exec ./arvados-tests.sh $@ +fi EOF CODE=$?