3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Test::Simple - basic utilities for writing tests
9 Summary(pl): Test::Simple - podstawowe narzêdzia do pisania testów
10 Name: perl-Test-Simple
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 2326fbbdfa11ef6eb79310daf844d5c7
18 URL: http://search.cpan.org/dist/Test-Simple/
19 %{?with_tests:BuildRequires: perl-Test-Harness >= 2.03}
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 Provides: perl-Test-Builder-Tester = 1.04
23 Obsoletes: perl-Test-Builder-Tester = 0:1.01
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _noautoreq 'perl(threads)' 'perl(threads::shared)'
30 AHHHHHHH!!!! NOT TESTING! Anything but testing! Beat me, whip me, send
31 me to Detroit, but don't make me write tests!
32 -- perldoc Test::Tutorial
34 Test::Simple is an extremely simple, extremely basic module for
35 writing tests suitable for CPAN modules and other pursuits. If you
36 wish to do more complicated testing, use the Test::More module (a
37 drop-in replacement for this one).
39 The purpose of Test::More is to provide a wide range of testing
40 utilities. Various ways to say "ok" with better diagnostics,
41 facilities to skip tests, test future features and compare complicated
42 data structures. While you can do almost anything with a simple "ok()"
43 function, it doesn't provide good diagnostic output.
46 AAAAAAAA!!! NIE TESTOWANIE! Wszystko tylko nie testowanie! Bijcie
47 mnie, biczujcie mnie, wy¶lijcie do Detroit, ale nie ka¿cie pisaæ
49 -- perldoc Test::Tutorial
51 Test::Simple jest bardzo prostym, bardzo podstawowym modu³em do
52 pisania testów pasuj±cych do modu³ów CPAN i innych. Do bardziej
53 skomplikowanych testów lepiej u¿ywaæ modu³u Test::More (zastêpuj±cego
56 Celem Test::More jest dostarczenie szerokiego zakresu narzêdzi do
57 testowania. Ró¿ne sposoby powiedzenia "ok" z lepsz± diagnostyk±,
58 u³atwienia przy pomijaniu testów, testowaniu przysz³ych mo¿liwo¶ci i
59 porównywaniu skomplikowanych struktur danych. O ile mo¿na zrobiæ
60 prawie wszystko prost± funkcj± "ok()", nie daje ona dobrego wyj¶cia
64 %setup -q -n %{pdir}-%{pnam}-%{version}
66 %{__perl} -nli -e 'print unless /^\s+sleep\s+\d+;\s*/' Makefile.PL
69 %{__perl} Makefile.PL \
73 %{?with_tests:%{__make} test}
76 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
81 rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Test/Tutorial.pod
84 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
88 %doc Changes README TODO
89 %{perl_vendorlib}/Test/*.pm
90 %{perl_vendorlib}/Test/Builder