#!/bin/sh # Copyright (C) The Arvados Authors. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 set -x cwldir=$(readlink -f $(dirname $0)) if ! which arvbox >/dev/null ; then export PATH=$PATH:$cwldir/../../tools/arvbox/bin fi reset_container=1 leave_running=0 config=dev devcwl=0 tag="latest" suite=conformance runapi=containers reinstall=0 while test -n "$1" ; do arg="$1" case "$arg" in --no-reset-container) reset_container=0 shift ;; --leave-running) leave_running=1 shift ;; --config) config=$2 shift ; shift ;; --tag) tag=$2 shift ; shift ;; --build) build=1 shift ;; --devcwl) devcwl=1 shift ;; --reinstall) reinstall=1 shift ;; --pythoncmd) echo "warning: --pythoncmd option is no longer supported; ignored" >&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] [--suite (integration|conformance-v1.0|conformance-*)]" exit ;; *) break ;; esac done 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 $cwldir/tests $ARVBOX_CONTAINER:/usr/src/arvados/sdk/cwl arvbox pipe <