Packages / openSUSE Tumbleweed / Source / Development/Libraries/Perl / perl-Test-Cmd

Source Package: perl-Test-Cmd (1.09-1.8)

Perl module for portable testing of commands and scripts

The 'Test::Cmd' module provides a low-level framework for portable automated testing of executable commands and scripts (in any language, not just Perl), especially commands and scripts that interact with the file system. The 'Test::Cmd' module makes no assumptions about what constitutes a successful or failed test. Attempting to read a file that doesn't exist, for example, may or may not be an error, depending on the software being tested. Consequently, no 'Test::Cmd' methods (including the 'new()' method) exit, die or throw any other sorts of exceptions (but they all do return useful error indications). Exceptions or other error status should be handled by a higher layer: a subclass of the Test::Cmd manpage, or another testing framework such as the the Test manpage or the Test::Simple manpage Perl modules, or by the test itself. (That said, see the the Test::Cmd::Common manpage module if you want a similar module that provides exception handling, either to use directly in your own tests, or as an example of how to use 'Test::Cmd'.) In addition to running tests and evaluating conditions, the 'Test::Cmd' module manages and cleans up one or more temporary workspace directories, and provides methods for creating files and directories in those workspace directories from in-line data (that is, here-documents), allowing tests to be completely self-contained. When used in conjunction with another testing framework, the 'Test::Cmd' module can function as a _fixture_ (common startup code for multiple tests) for simple management of command execution and temporary workspaces. The 'Test::Cmd' module inherits the File::Spec manpage methods ('file_name_is_absolute()', 'catfile()', etc.) to support writing tests portably across a variety of operating and file systems. A 'Test::Cmd' environment object is created via the usual invocation: $test = Test::Cmd->new(); Arguments to the 'Test::Cmd::new' method are keyword-value pairs that may be used to initialize the object, typically by invoking the same-named method as the keyword.

Package information

Homepage
[http://search.cpan.org/dist/Test-Cmd/]
License
Artistic-1.0 or GPL-1.0+
Супровідник downstream-пакета
Невідомо: не зазначено в проіндексованому джерелі

The following binary packages are built from this source package:

  • perl-Test-Cmd

    Perl module for portable testing of commands and scripts

Відомі вразливості

У відстежуваних джерелах немає відповідних повідомлень.

Остання синхронізація:

[Каталог CVE]

Джерела

  • Authoritative source; repository metadata signature verified

    Доказ підпису

    tumbleweed-oss-multiarch:4db10cdde3ad82c7e22be35753c9e164b4bdd30f92db4aee17a0d4c94c5f902f

    Repository-signature verification record
    Signed-object SHA-256
    4db10cdde3ad82c7e22be35753c9e164b4bdd30f92db4aee17a0d4c94c5f902f
    Signer fingerprint
    AD485664E901B867051AB15F35A2F86E29B700A4
    Keyring revision
    opensuse-project-signing-key.asc
    SHA-256 b5745739ebfb95b25b8e810f9bcb847fe750ccda598bd85f02f0e974599a6d7e
    Tool and policy
    gpgv (GnuPG) 2.4.9
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable