Skip to content

Commit

Permalink
Test 05 for --timestamp-format extended with two negativ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnw-sebast committed Jun 9, 2024
1 parent e8ece15 commit b440ad6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion ci/test-05-options-c-e.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/perl -w

use Test::Command tests => 42;
use Test::Command tests => 48;

# -c n count of pings to send to each target (default 1)
# -C n same as -c, report results in verbose format
Expand Down Expand Up @@ -174,6 +174,22 @@
});
}

# fping -D --timestamp-format
{
my $cmd = Test::Command->new(cmd => "fping -D --timestamp-format -c 2 -p 100 127.0.0.1");
$cmd->exit_is_num(1);
$cmd->stdout_is_eq("");
$cmd->stderr_like(qr{Usage:});
}

# fping -D --timestamp-format="%Y-%m-%d %H:%M:%S"
{
my $cmd = Test::Command->new(cmd => "fping -D --timestamp-format=\"%Y-%m-%d %H:%M:%S\" -c 2 -p 100 127.0.0.1");
$cmd->exit_is_num(1);
$cmd->stdout_is_eq("");
$cmd->stderr_like(qr{Usage:});
}

# fping -e
{
my $cmd = Test::Command->new(cmd => "fping -e 127.0.0.1");
Expand Down

0 comments on commit b440ad6

Please sign in to comment.