Martin Sivák has uploaded a new change for review.

Change subject: Add tests subdirectory and run the tests during rpm build
......................................................................

Add tests subdirectory and run the tests during rpm build

Change-Id: I298e3719ee461e747fb47fa681b326578bf26d85
Signed-off-by: Martin Sivak <msi...@redhat.com>
---
M MANIFEST.in
M mom.spec.in
2 files changed, 13 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/83/16883/1

diff --git a/MANIFEST.in b/MANIFEST.in
index 4bd7a53..6042a80 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,5 +1,6 @@
 recursive-include doc * *.rules
 recursive-include contrib *
+recursive-include tests *.py
 include momd
 include mom-guestd
 include mom.spec
diff --git a/mom.spec.in b/mom.spec.in
index a0ca274..44cebf7 100644
--- a/mom.spec.in
+++ b/mom.spec.in
@@ -24,16 +24,16 @@
 Requires(preun): initscripts
 
 %description
-MOM is a policy-driven tool that can be used to manage overcommitment on KVM 
-hosts. Using libvirt, MOM keeps track of active virtual machines on a host. At 
-a regular collection interval, data is gathered about the host and guests. 
Data 
-can come from multiple sources (eg. the /proc interface, libvirt API calls, a 
-client program connected to a guest, etc). Once collected, the data is 
-organized for use by the policy evaluation engine. When started, MOM accepts a 
-user-supplied overcommitment policy. This policy is regularly evaluated using 
-the latest collected data. In response to certain conditions, the policy may 
-trigger reconfiguration of the system’s overcommitment mechanisms. Currently 
-MOM supports control of memory ballooning and KSM but the architecture is 
+MOM is a policy-driven tool that can be used to manage overcommitment on KVM
+hosts. Using libvirt, MOM keeps track of active virtual machines on a host. At
+a regular collection interval, data is gathered about the host and guests. Data
+can come from multiple sources (eg. the /proc interface, libvirt API calls, a
+client program connected to a guest, etc). Once collected, the data is
+organized for use by the policy evaluation engine. When started, MOM accepts a
+user-supplied overcommitment policy. This policy is regularly evaluated using
+the latest collected data. In response to certain conditions, the policy may
+trigger reconfiguration of the system’s overcommitment mechanisms. Currently
+MOM supports control of memory ballooning and KSM but the architecture is
 designed to accommodate new mechanisms such as cgroups.
 
 
@@ -57,6 +57,8 @@
    $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version}
 cp COPYING README $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}-%{version}
 
+%check
+nosetests tests/*.py
 
 %clean
 rm -rf $RPM_BUILD_ROOT


-- 
To view, visit http://gerrit.ovirt.org/16883
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I298e3719ee461e747fb47fa681b326578bf26d85
Gerrit-PatchSet: 1
Gerrit-Project: mom
Gerrit-Branch: master
Gerrit-Owner: Martin Sivák <msi...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to