File: sshoot.t

package info (click to toggle)
python-sshoot 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 344 kB
  • sloc: python: 1,579; makefile: 23; sh: 1
file content (21 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use strict;
use warnings;

use Test::More;
use Test::Command::Simple;

my $CMD = 'sshoot';

run_ok 2, $CMD;
cmp_ok stdout, 'eq', '', 'bare command, stdout';
like stderr, qr/^$CMD: error: the following arguments are required: ACTION$/m, 'bare command, stderr';

run_ok $CMD, '--help';
like stdout, qr/^usage: $CMD/, 'help, stdout';
cmp_ok stderr, 'eq', '', 'help, stderr';

run_ok $CMD, qw(list);
like stdout, qr/Name\h+Remote host\h+Subnets/, 'list, stdout';
cmp_ok stderr, 'eq', '', 'list, stderr';

done_testing;