Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37725701
en ru br
ALT Linux repositórios
S:0.02-alt1
5.0: 0.01-alt3
4.1: 0.01-alt1
4.0: 0.01-alt1

Group :: Desenvolvimento/Perl
RPM: perl-Tie-Filehandle-Preempt-Stdin

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

#
#   - Tie::Filehandle::Preempt::Stdin -
#   This spec file was automatically generated by cpan2rpm [ver: 2.027]
#   (ALT Linux revision)
#   The following arguments were used:
#       Tie::Filehandle::Preempt::Stdin Tie-Filehandle-Preempt-Stdin-0.01.tar.gz
#   For more information on cpan2rpm please visit: http://perl.arix.com/
#

%define module Tie-Filehandle-Preempt-Stdin
%define m_distro Tie-Filehandle-Preempt-Stdin
%define m_name Tie::Filehandle::Preempt::Stdin
%define m_author_id unknown
%define _enable_test 1

Name: perl-Tie-Filehandle-Preempt-Stdin
Version: 0.01
Release: alt3.1

Summary: Preempt STDIN during testing

License: Artistic
Group: Development/Perl
Url: http://www.cpan.org

Packager: Anton V. Boyarshinov <boyarsh at altlinux.ru>

BuildArch: noarch
Source: %m_distro-%version.tar.gz

# Automatically added by buildreq on Thu Feb 08 2007

BuildRequires: perl-devel

%description
Suppose a program requires manual input from the keyboard operator.
How do we test that we have properly handled operator input?  More
specifically, how do we incorporate testing for user input in files
built on Perl's standard testing apparatus ("Test::Simple",
"Test::More", etc.)?

Tie::Filehandle::Preempt::Stdin offers one way to do it -- a relatively
simple and unsophisticated todo it.  The most difficult part is
analyzing the program to be tested so that you recognize all the points
at which input is needed via STDIN.  This in turn requires an
understanding of all the different branches your program flow can take
in response to standard input.  Once you know that, you construct a list
of dummy data that will be fed to each test at the points the program,
when put into production, would normally prompt for operator input.
This list of dummy data 'pre-empts' standard input via a tie of
filehandle STDIN; hence, the module's name.

%prep
%setup -q -n %m_distro-%version
%build
%perl_vendor_build

%install
%perl_vendor_install

%files
%perl_vendor_privlib/Tie


%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009