X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/37470b030384ebe8a73e6d1e725cbde4abb924da..b8977c89db2707dd713cd4eeb11d595717fcff75:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index b6a93d4712..00987a8efa 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -1,6 +1,9 @@ #!/bin/bash +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 -. `dirname "$(readlink -f "$0")"`/libcloud-pin +. `dirname "$(readlink -f "$0")"`/libcloud-pin.sh COLUMNS=80 . `dirname "$(readlink -f "$0")"`/run-library.sh @@ -78,6 +81,7 @@ services/keepstore services/keep-balance services/login-sync services/nodemanager +services/nodemanager-integration services/crunch-run services/crunch-dispatch-local services/crunch-dispatch-slurm @@ -168,8 +172,8 @@ sanity_checks() { echo -n 'go: ' go version \ || fatal "No go binary. See http://golang.org/doc/install" - [[ $(go version) =~ go1.([0-9]+) ]] && [[ ${BASH_REMATCH[1]} -ge 7 ]] \ - || fatal "Go >= 1.7 required. See http://golang.org/doc/install" + [[ $(go version) =~ go1.([0-9]+) ]] && [[ ${BASH_REMATCH[1]} -ge 8 ]] \ + || fatal "Go >= 1.8 required. See http://golang.org/doc/install" echo -n 'gcc: ' gcc --version | egrep ^gcc \ || fatal "No gcc. Try: apt-get install build-essential" @@ -567,7 +571,7 @@ do_test_once() { # mode makes Go show the wrong line numbers when reporting # compilation errors. go get -t "git.curoverse.com/arvados.git/$1" && \ - cd "$WORKSPACE/$1" && \ + cd "$GOPATH/src/git.curoverse.com/arvados.git/$1" && \ [[ -z "$(gofmt -e -d . | tee /dev/stderr)" ]] && \ if [[ -n "${testargs[$1]}" ]] then @@ -854,6 +858,12 @@ test_login-sync() { } do_test services/login-sync login-sync +test_nodemanager-integration() { + cd "$WORKSPACE/services/nodemanager" \ + && tests/integration_test.py ${testargs[services/nodemanager-integration]} +} +do_test services/nodemanager-integration nodemanager-integration + for p in "${pythonstuff[@]}" do dir=${p%:py3}