X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/50c0afeb2cad89f6248a36ed6b44a66ae974dbac..991d7d7967cef46bf5aebf95f946e3072aa1e933:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index 15e89fa927..496ba0c6e6 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -81,7 +81,7 @@ services/keepstore services/keep-balance services/login-sync services/nodemanager -services/nodemanager-integration +services/nodemanager_integration services/crunch-run services/crunch-dispatch-local services/crunch-dispatch-slurm @@ -204,8 +204,12 @@ sanity_checks() { echo -n 'gitolite: ' which gitolite \ || fatal "No gitolite. Try: apt-get install gitolite3" - which npm \ - || fatal "No npm. Try: wget -O- https://nodejs.org/dist/v6.11.2/node-v6.11.2-linux-x64.tar.xz | sudo tar -C /usr/local xJf - && sudo ln -s ../node-v6.11.2-linux-x64/bin/{node,npm} /usr/local/bin/" + echo -n 'npm: ' + npm --version \ + || fatal "No npm. Try: wget -O- https://nodejs.org/dist/v6.11.2/node-v6.11.2-linux-x64.tar.xz | sudo tar -C /usr/local -xJf - && sudo ln -s ../node-v6.11.2-linux-x64/bin/{node,npm} /usr/local/bin/" + echo -n 'cadaver: ' + cadaver --version | grep -w cadaver \ + || fatal "No cadaver. Try: apt-get install cadaver" } rotate_logfile() { @@ -470,11 +474,21 @@ pip freeze 2>/dev/null | egrep ^apache-libcloud==$LIBCLOUD_PIN \ || pip install --pre --ignore-installed https://github.com/curoverse/libcloud/archive/apache-libcloud-$LIBCLOUD_PIN.zip >/dev/null \ || fatal "pip install apache-libcloud failed" -# Uninstall old llfuse (<1.0), because services/fuse "pip install" -# won't upgrade it by default. -if pip freeze | egrep '^llfuse==0'; then - yes | pip uninstall 'llfuse<1.0' -fi +# We need an unreleased (as of 2017-08-17) llfuse bugfix, otherwise our fuse test suite deadlocks. +pip freeze | grep -x llfuse==1.2.0 || ( + set -e + yes | pip uninstall llfuse || true + cython --version || fatal "no cython; try sudo apt-get install cython" + cd "$temp" + (cd python-llfuse 2>/dev/null || git clone https://github.com/curoverse/python-llfuse) + cd python-llfuse + git checkout 620722fd990ea642ddb8e7412676af482c090c0c + git checkout setup.py + sed -i -e "s:'1\\.2':'1.2.0':" setup.py + python setup.py build_cython + python setup.py install --force +) || fatal "llfuse fork failed" +pip freeze | grep -x llfuse==1.2.0 || fatal "error: installed llfuse 1.2.0 but '$(pip freeze | grep llfuse)' ???" # Deactivate Python 2 virtualenv deactivate @@ -547,6 +561,9 @@ do_test() { apps/workbench_units | apps/workbench_functionals | apps/workbench_integration) suite=apps/workbench ;; + services/nodemanager | services/nodemanager_integration) + suite=services/nodemanager_suite + ;; *) suite="${1}" ;; @@ -863,11 +880,11 @@ test_login-sync() { } do_test services/login-sync login-sync -test_nodemanager-integration() { +test_nodemanager_integration() { cd "$WORKSPACE/services/nodemanager" \ - && tests/integration_test.py ${testargs[services/nodemanager-integration]} + && tests/integration_test.py ${testargs[services/nodemanager_integration]} } -do_test services/nodemanager-integration nodemanager-integration +do_test services/nodemanager_integration nodemanager_integration for p in "${pythonstuff[@]}" do