LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-Test-Builder-Tester.spec of Package perl-Test-Builder-Tester (Project home:sdrahn:CS)

#
# spec file for package perl-Test-Builder-Tester
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           perl-Test-Builder-Tester
Version:        1.01
Release:        0
%define cpan_name Test-Builder-Tester
Summary:        test testsuites that have been built with
License:        CHECK(GPL-1.0+ or Artistic-1.0)
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Test-Builder-Tester/
#Source:        http://www.cpan.org/authors/id/M/MS/MSCHWERN/Test-Simple-0.98.tar.gz
Source:         Test-Builder-Tester-1.01.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Module::Build)
%{perl_requires}

%description
A module that helps you test testing modules that are built with
*Test::Builder*.

The testing system is designed to be used by performing a three step
process for each test you wish to test. This process starts with using
'test_out' and 'test_err' in advance to declare what the testsuite you are
testing will output with *Test::Builder* to stdout and stderr.

You then can run the test(s) from your test suite that call
*Test::Builder*. At this point the output of *Test::Builder* is safely
captured by *Test::Builder::Tester* rather than being interpreted as real
test output.

The final stage is to call 'test_test' that will simply compare what you
predeclared to what *Test::Builder* actually outputted, and report the
results back with a "ok" or "not ok" (with debugging) to the normal output.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}

%check


%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc CHANGES

%changelog