X-Git-Url: https://git.arvados.org/arvados-dev.git/blobdiff_plain/b25bb303ff9c56f3b4349ba1e1cab399acf404f5..0528a6d4df9d81622f9813c2a8925dd7322a81bb:/jenkins/run-tests.sh diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh index ee4a9c4..ec6f4b9 100755 --- a/jenkins/run-tests.sh +++ b/jenkins/run-tests.sh @@ -21,7 +21,7 @@ Options: WORKSPACE=path Arvados source tree to test. CONFIGSRC=path Dir with api server config files to copy into source tree. (If none given, leave config files alone in source tree.) -apiserver_test="TEST=test/functional/arvados/v1/collections_test.rb" +apiserver_test="TEST=test/functional/arvados/v1/collections_controller_test.rb" Restrict apiserver tests to the given file python_sdk_test="--test-suite test.test_keep_locator" Restrict Python SDK tests to the given class @@ -88,7 +88,7 @@ clear_temp() { leaving+=" $var=\"${!var}\"" fi done - if [[ -z "$leaving" ]]; then + if [[ -n "$leaving" ]]; then echo "Leaving behind temp dirs: $leaving" fi } @@ -165,6 +165,10 @@ if [[ -z "$CONFIGSRC" ]] && [[ -d "$HOME/arvados-api-server" ]]; then CONFIGSRC="$HOME/arvados-api-server" fi +# Clean up .pyc files that may exist in the workspace +cd "$WORKSPACE" +find -name '*.pyc' -delete + # Set up temporary install dirs (unless existing dirs were supplied) for tmpdir in VENVDIR GOPATH GEMHOME do @@ -181,7 +185,7 @@ ln -sfn "$WORKSPACE" "$GOPATH/src/git.curoverse.com/arvados.git" \ || fatal "symlink failed" virtualenv --setuptools "$VENVDIR" || fatal "virtualenv $VENVDIR failed" -PATH="$VENVDIR/bin:$PATH" +. "$VENVDIR/bin/activate" checkexit() { if [[ "$?" != "0" ]]; then @@ -275,14 +279,14 @@ install_python_sdk() { # keepproxy). cd "$WORKSPACE/sdk/python" \ - && python setup.py egg_info -b ".$(git log --first-parent --format=format:%ci.%h -n1 . | tr -dc 0-9a-f. | cut -c 1-14,19-)" sdist rotate --keep=1 --match .tar.gz \ + && python setup.py sdist rotate --keep=1 --match .tar.gz \ && pip install dist/arvados-python-client-0.1.*.tar.gz } do_install python_sdk install_fuse() { cd "$WORKSPACE/services/fuse" \ - && python setup.py egg_info -b ".$(git log --first-parent --format=format:%ci.%h -n1 . | tr -dc 0-9a-f. | cut -c 1-14,19-)" sdist rotate --keep=1 --match .tar.gz \ + && python setup.py sdist rotate --keep=1 --match .tar.gz \ && pip install dist/arvados_fuse-0.1.*.tar.gz } do_install fuse @@ -337,6 +341,7 @@ do_install apiserver declare -a gostuff gostuff=( + services/crunchstat services/keepstore services/keepproxy sdk/go/arvadosclient @@ -401,6 +406,11 @@ test_fuse() { } do_test fuse +test_nodemanager() { + cd "$WORKSPACE/services/nodemanager" && python setup.py test +} +do_test nodemanager + for g in "${gostuff[@]}" do do_test "$g" go