e2ada8ed62c492ac45517931ad37eb187f0affcb
[arvados.git] / build / package-testing / test-package-arvados-node-manager.sh
1 #!/bin/sh
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 set -e
7 arvados-node-manager --version
8 set +e
9
10 PYTHON=`ls /usr/share/python2.7/dist/arvados-node-manager/bin/python2.7`
11
12 if [ "$PYTHON" != "" ]; then
13   set -e
14   exec $PYTHON <<EOF
15 import libcloud.compute.types
16 import libcloud.compute.providers
17 libcloud.compute.providers.get_driver(libcloud.compute.types.Provider.AZURE_ARM)
18 print "Successfully imported compatible libcloud library"
19 EOF
20 else
21         exit 1
22 fi