[Pkg-libvirt-commits] [SCM] Libvirt Debian packaging branch, master, updated. debian/1.0.3-1
Guido Günther
agx at sigxcpu.org
Fri Mar 8 18:39:51 UTC 2013
The following commit has been merged in the master branch:
commit ab5c10913f3f80ef261295b550254a4c6c0632de
Author: Guido Günther <agx at sigxcpu.org>
Date: Fri Mar 8 18:38:42 2013 +0100
Add sanitytest.py
missing from the upstream tarball
diff --git a/debian/patches/Add-sanitytest.py.patch b/debian/patches/Add-sanitytest.py.patch
new file mode 100644
index 0000000..56bacd8
--- /dev/null
+++ b/debian/patches/Add-sanitytest.py.patch
@@ -0,0 +1,52 @@
+From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx at sigxcpu.org>
+Date: Fri, 8 Mar 2013 18:37:35 +0100
+Subject: Add sanitytest.py
+
+missing in the upstream tarball
+---
+ python/sanitytest.py | 36 ++++++++++++++++++++++++++++++++++++
+ 1 file changed, 36 insertions(+)
+ create mode 100644 python/sanitytest.py
+
+diff --git a/python/sanitytest.py b/python/sanitytest.py
+new file mode 100644
+index 0000000..ace6792
+--- /dev/null
++++ b/python/sanitytest.py
+@@ -0,0 +1,36 @@
++#!/usr/bin/python
++
++import libvirt
++
++globals = dir(libvirt)
++
++# Sanity test that the generator hasn't gone wrong
++
++# Look for core classes
++for clsname in ["virConnect",
++ "virDomain",
++ "virDomainSnapshot",
++ "virInterface",
++ "virNWFilter",
++ "virNodeDevice",
++ "virNetwork",
++ "virSecret",
++ "virStoragePool",
++ "virStorageVol",
++ "virStream",
++ ]:
++ assert(clsname in globals)
++ assert(object in getattr(libvirt, clsname).__bases__)
++
++# Constants
++assert("VIR_CONNECT_RO" in globals)
++
++# Error related bits
++assert("libvirtError" in globals)
++assert("VIR_ERR_AUTH_FAILED" in globals)
++assert("virGetLastError" in globals)
++
++# Some misc methods
++assert("virInitialize" in globals)
++assert("virEventAddHandle" in globals)
++assert("virEventRegisterDefaultImpl" in globals)
diff --git a/debian/patches/series b/debian/patches/series
index 6148614..a7f7841 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ Don-t-fail-if-we-can-t-setup-avahi.patch
Reduce-udevadm-settle-timeout-to-10-seconds.patch
debian/Debianize-systemd-service-files.patch
Allow-xen-toolstack-to-find-it-s-binaries.patch
+Add-sanitytest.py.patch
--
Libvirt Debian packaging
More information about the Pkg-libvirt-commits
mailing list