[PATCH] python/osmo-python-tests[master]: Add basic module import tests

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Fri Dec 15 11:45:04 UTC 2017


Review at  https://gerrit.osmocom.org/5390

Add basic module import tests

Change-Id: Iac237ef661b93085092b9e61612df9b8f5c3c0f0
---
M contrib/jenkins.sh
A tests/test_py2.py
A tests/test_py3.py
3 files changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests refs/changes/90/5390/1

diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index eafc2f4..4e51dd1 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -4,8 +4,10 @@
 
 # FIXME: remove once python 2 support is deprecated
 python2 ./setup.py install
+python2 tests/test_py2.py
 
 rm -rf ./build
 python3 ./setup.py install
+python3 tests/test_py3.py
 
 # TODO: add more tests
diff --git a/tests/test_py2.py b/tests/test_py2.py
new file mode 100644
index 0000000..cac5261
--- /dev/null
+++ b/tests/test_py2.py
@@ -0,0 +1,7 @@
+#!/usr/bin/env python2
+
+# just import a smoke test for osmopy
+
+import osmopy
+
+print '[Python2] Smoke test PASSED.'
diff --git a/tests/test_py3.py b/tests/test_py3.py
new file mode 100644
index 0000000..cac2f93
--- /dev/null
+++ b/tests/test_py3.py
@@ -0,0 +1,7 @@
+#!/usr/bin/env python3
+
+# just import a smoke test for osmopy
+
+import osmopy
+
+print('[Python3] Smoke test PASSED.')

-- 
To view, visit https://gerrit.osmocom.org/5390
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iac237ef661b93085092b9e61612df9b8f5c3c0f0
Gerrit-PatchSet: 1
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list