Skip to content

Commit

Permalink
Test 08 for --print-tos
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnw-sebast committed Jul 21, 2024
1 parent 6e738a9 commit 16e20b3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ci/test-08-options-n-q.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/perl -w

use Test::Command tests => 36;
use Test::Command tests => 39;

# -n show targets by name (-d is equivalent)
# -O n set the type of service (tos) flag on the ICMP packets
Expand Down Expand Up @@ -48,6 +48,15 @@
$cmd->stderr_is_eq("");
}

# fping -O --print-tos
{
my $cmd = Test::Command->new(cmd => "fping -O 2 --print-tos 127.0.0.1");
$cmd->exit_is_num(0);
$cmd->stdout_like(qr{127\.0\.0\.1 is alive \(TOS \d+\)
});
$cmd->stderr_is_eq("");
}

# fping -q
{
my $cmd = Test::Command->new(cmd => "fping -q -p 100 -c 3 127.0.0.1");
Expand Down

0 comments on commit 16e20b3

Please sign in to comment.