commit 02b6b72d6e87f3463a01b422f30f00c8da0f5895 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Thu Jun 23 11:39:38 2011 +0200 Run tests against Xvfb perl-Wx-Perl-DataWalker.spec | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) --- diff --git a/perl-Wx-Perl-DataWalker.spec b/perl-Wx-Perl-DataWalker.spec index 63826cc..613930a 100644 --- a/perl-Wx-Perl-DataWalker.spec +++ b/perl-Wx-Perl-DataWalker.spec @@ -1,3 +1,5 @@ +%global use_x11_tests 1 + Name: perl-Wx-Perl-DataWalker Version: 0.02 Release: 10%{?dist} @@ -13,6 +15,12 @@ BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Wx) >= 0.88 BuildRequires: perl(YAML::XS) BuildRequires: perl(Test::More) +%if %{use_x11_tests} +# X11 tests: +BuildRequires: xorg-x11-server-Xvfb +BuildRequires: xorg-x11-xinit +BuildRequires: font(:lang=en) +%endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description @@ -35,7 +43,10 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check -make test +%if %{use_x11_tests} + xinit /bin/sh -c 'rm -f ok; make test && touch ok' -- /usr/bin/Xvfb :666 + test -e ok +%endif %files %doc Changes @@ -45,6 +56,7 @@ make test %changelog * Thu Jun 23 2011 Petr Pisar <ppisar@xxxxxxxxxx> - 0.02-10 - Remove obsolete spec code +- Run tests against Xvfb * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.02-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel