rdieter pushed to grantlee (f20). "%check: use xvfb-run"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun Apr 12 13:41:52 UTC 2015


>From 1b842c93d0726ad706a8f1d36d7d385155981a22 Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at math.unl.edu>
Date: Tue, 3 Dec 2013 13:39:14 -0600
Subject: %check: use xvfb-run


diff --git a/grantlee.spec b/grantlee.spec
index e11bbad..da6099a 100644
--- a/grantlee.spec
+++ b/grantlee.spec
@@ -4,7 +4,7 @@
 Name:    grantlee
 Summary: Qt string template engine based on the Django template system
 Version: 0.4.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 
 License: LGPLv2+
 URL:     http://www.gitorious.org/grantlee/pages/Home
@@ -16,6 +16,8 @@ BuildRequires: pkgconfig(QtGui) pkgconfig(QtScript)
 BuildRequires: doxygen
 BuildRequires: graphviz
 %endif
+## for %%check
+BuildRequires: xorg-x11-server-Xvfb
 
 %description
 Grantlee is a plug-in based String Template system written 
@@ -80,8 +82,7 @@ cp -prf %{_target_platform}/apidox/* %{buildroot}%{_docdir}/HTML/en/grantlee-api
 
 
 %check
-# at least tests 10/11 currently fail, apparently require an X server
-make test -C %{_target_platform} ||:
+xvfb-run -a make test -C %{_target_platform}
 
 
 %post -p /sbin/ldconfig
@@ -110,6 +111,9 @@ make test -C %{_target_platform} ||:
 %endif
 
 %changelog
+* Tue Dec 03 2013 Rex Dieter <rdieter at fedoraproject.org> 0.4.0-3
+- %%check: use xvfb-run
+
 * Tue Dec 03 2013 Rex Dieter <rdieter at fedoraproject.org> 0.4.0-2
 - %%check: make test
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/grantlee.git/commit/?h=f20&id=1b842c93d0726ad706a8f1d36d7d385155981a22


More information about the scm-commits mailing list