[trac] Run the test suite in %check

Luke Macken lmacken at fedoraproject.org
Wed May 1 14:45:33 UTC 2013


commit c42c2a0ba16f1d50df7699b47b8363d4d687da29
Author: Luke Macken <lmacken at redhat.com>
Date:   Wed May 1 10:45:27 2013 -0400

    Run the test suite in %check

 trac.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/trac.spec b/trac.spec
index df029b8..efa635a 100644
--- a/trac.spec
+++ b/trac.spec
@@ -2,7 +2,7 @@
 
 Name:           trac
 Version:        1.0.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Enhanced wiki and issue tracking system
 Group:          Applications/Internet
 License:        BSD
@@ -47,6 +47,9 @@ rm -f contrib/trac-post-commit-hook.cmd
 %build
 %{__python} setup.py build
 
+%check
+PYTHONPATH=$(pwd) %{__python} setup.py test
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -87,6 +90,9 @@ rm -rf $RPM_BUILD_ROOT
 #%{_var}/www/cgi-bin/trac.wsgi
 
 %changelog
+* Wed May 01 2013 Luke Macken <lmacken at redhat.com> - 1.0.1-2
+- Run the test suite
+
 * Mon Feb 04 2013 Jon Ciesla <limburgher at gmail.com> - 1.0.1-1
 - 1.0.1, BZ 907068
 


More information about the scm-commits mailing list