[Pkg-libvirt-commits] [SCM] Libvirt Debian packaging branch, master, updated. debian/1.0.5-1

Guido Günther agx at sigxcpu.org
Thu May 2 20:01:39 UTC 2013


The following commit has been merged in the master branch:
commit 3f914e6dd3e30dff5beb9704e25832dbade7aa31
Author: Guido Günther <agx at sigxcpu.org>
Date:   Thu May 2 16:49:12 2013 +0200

    Add back sanitytest.py
    
    that got lost in 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..4ade08a
--- /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: Thu, 2 May 2013 16:48:32 +0200
+Subject: Add sanitytest.py
+
+missing from 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 8eec335..6079eb3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@ Reduce-udevadm-settle-timeout-to-10-seconds.patch
 debian/Debianize-systemd-service-files.patch
 Allow-xen-toolstack-to-find-it-s-binaries.patch
 virthreadpthread-don-t-try-to-cast-pthread_t-to-void.patch
+Add-sanitytest.py.patch

-- 
Libvirt Debian packaging



More information about the Pkg-libvirt-commits mailing list