IO-Compress-Lzma

 view release on metacpan or  search on metacpan

t/010examples-lzma.t  view on Meta::CPAN


    $aok &= is $?, 0, "  exit status is 0" ;

    $aok &= is readFile($stderr), '', "  no stderr" ;

    $aok &= is $stdout, $expected, "  expected content is ok"
        if defined $expected ;

    if (! $aok) {
        diag "Command line: $cmd";
        my ($file, $line) = (caller)[1,2];
        diag "Test called from $file, line $line";
    }

    1 while unlink $stderr;
}

# lzcat
# #####

title "lzcat - command line" ;

t/010examples-xz.t  view on Meta::CPAN


    $aok &= is $?, 0, "  exit status is 0" ;

    $aok &= is readFile($stderr), '', "  no stderr" ;

    $aok &= is $stdout, $expected, "  expected content is ok"
        if defined $expected ;

    if (! $aok) {
        diag "Command line: $cmd";
        my ($file, $line) = (caller)[1,2];
        diag "Test called from $file, line $line";
    }

    1 while unlink $stderr;
}

# xzcat
# #####

title "xzcat - command line" ;



( run in 0.414 second using v1.01-cache-2.11-cpan-a3c8064c92c )