16568: add package test files for the python3 arvados python client
authorWard Vandewege <ward@curii.com>
Mon, 29 Jun 2020 15:16:21 +0000 (11:16 -0400)
committerWard Vandewege <ward@curii.com>
Mon, 29 Jun 2020 15:16:21 +0000 (11:16 -0400)
       packages.

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

build/package-testing/test-package-python3-arvados-python-client.sh [new file with mode: 0755]
build/package-testing/test-package-rh-python36-python-arvados-python-client.sh [new file with mode: 0755]

diff --git a/build/package-testing/test-package-python3-arvados-python-client.sh b/build/package-testing/test-package-python3-arvados-python-client.sh
new file mode 100755 (executable)
index 0000000..d4e66a2
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+set -e
+
+arv-put --version
+
+/usr/share/python3/dist/python3-arvados-python-client/bin/python3 << EOF
+import arvados
+print("Successfully imported arvados")
+EOF
diff --git a/build/package-testing/test-package-rh-python36-python-arvados-python-client.sh b/build/package-testing/test-package-rh-python36-python-arvados-python-client.sh
new file mode 100755 (executable)
index 0000000..1a69256
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+set -e
+
+arv-put --version
+
+/usr/share/python3/dist/rh-python36-python-arvados-python-client/bin/python3 << EOF
+import arvados
+print("Successfully imported arvados")
+EOF