aboutsummaryrefslogtreecommitdiff
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control8
-rwxr-xr-xdebian/tests/python-gi-test10
2 files changed, 18 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..45b5378
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,8 @@
+Tests: python-gi-test
+Depends:
+ gir1.2-ayatanacommon-0.1,
+ python3,
+ python3-gi,
+Restrictions:
+ allow-stderr,
+ superficial,
diff --git a/debian/tests/python-gi-test b/debian/tests/python-gi-test
new file mode 100755
index 0000000..9754ea1
--- /dev/null
+++ b/debian/tests/python-gi-test
@@ -0,0 +1,10 @@
+#!/usr/bin/python3
+#
+# Make sure gobject introspection works
+
+import gi
+
+gi.require_version('AyatanaCommon', '0.1')
+from gi.repository import AyatanaCommon
+
+assert AyatanaCommon.utils_is_gnome() in (True, False)