X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c3d4f8a585202ec58df5506934b698039c200b68..5cd02331394595a6e64f19c2cc14c9955c9266dd:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index f412dea58c..afaa834d3b 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -178,6 +178,9 @@ sanity_checks() { echo -n 'fuse.h: ' find /usr/include -wholename '*fuse/fuse.h' \ || fatal "No fuse/fuse.h. Try: apt-get install libfuse-dev" + echo -n 'gnutls.h: ' + find /usr/include -wholename '*gnutls/gnutls.h' \ + || fatal "No gnutls/gnutls.h. Try: apt-get install libgnutls28-dev" echo -n 'pyconfig.h: ' find /usr/include -name pyconfig.h | egrep --max-count=1 . \ || fatal "No pyconfig.h. Try: apt-get install python-dev" @@ -438,7 +441,7 @@ export PERLLIB="$PERLINSTALLBASE/lib/perl5:${PERLLIB:+$PERLLIB}" export GOPATH mkdir -p "$GOPATH/src/git.curoverse.com" -ln -sfn "$WORKSPACE" "$GOPATH/src/git.curoverse.com/arvados.git" \ +ln -sfT "$WORKSPACE" "$GOPATH/src/git.curoverse.com/arvados.git" \ || fatal "symlink failed" setup_virtualenv "$VENVDIR" --python python2.7 @@ -519,7 +522,7 @@ retry() { do_test() { case "${1}" in - apps/workbench_units | apps/workbench_functional | apps/workbench_integration) + apps/workbench_units | apps/workbench_functionals | apps/workbench_integration) suite=apps/workbench ;; *) @@ -548,14 +551,14 @@ do_test_once() { # before trying "go test". Otherwise, coverage-reporting # mode makes Go show the wrong line numbers when reporting # compilation errors. - go get -t "git.curoverse.com/arvados.git/$1" || return 1 - cd "$WORKSPACE/$1" || return 1 - gofmt -e -d . | egrep . && result=1 - if [[ -n "${testargs[$1]}" ]] + go get -t "git.curoverse.com/arvados.git/$1" && \ + cd "$WORKSPACE/$1" && \ + [[ -z "$(gofmt -e -d . | tee /dev/stderr)" ]] && \ + if [[ -n "${testargs[$1]}" ]] then # "go test -check.vv giturl" doesn't work, but this # does: - cd "$WORKSPACE/$1" && go test ${short:+-short} ${testargs[$1]} + go test ${short:+-short} ${testargs[$1]} else # The above form gets verbose even when testargs is # empty, so use this form in such cases: