File: 90-command.t

package info (click to toggle)
libsystem-command-perl 1.122-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 228 kB
  • sloc: perl: 550; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 446 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use warnings;
use strict;
use Test::More;

BEGIN {
    if ( !eval 'use Test::Command; 1;' ) {
        $ENV{RELEASE_TESTING}
            ? die "Test::Command is required for RELEASE_TESTING"
            : plan skip_all => 'Test::Command not available';
    }
}

use System::Command;

plan tests => 2;

stdout_like(qq{$^X -le "print STDOUT 'STDOUT'"}, qr/STDOUT/, 'STDOUT');
stderr_like(qq{$^X -le "print STDERR 'STDERR'"}, qr/STDERR/, 'STDERR');