summaryrefslogtreecommitdiff
path: root/t/50-icli.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-11-23 19:13:56 +0100
committerDaniel Friesel <derf@finalrewind.org>2010-11-23 19:13:56 +0100
commit80161c1e1c836ebed4117a12ded79c28e076ff5e (patch)
tree49b76b35a3f44033f887ced2b0d7f182ea7185db /t/50-icli.t
parentb7bd9f4c1c99d131b66b5991e41f28725a00ac9f (diff)
Tests for -v
Diffstat (limited to 't/50-icli.t')
-rw-r--r--t/50-icli.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/50-icli.t b/t/50-icli.t
index 9fd7983..a5fc8a6 100644
--- a/t/50-icli.t
+++ b/t/50-icli.t
@@ -6,7 +6,7 @@ use 5.010;
# We need commas in our qw list, they're not accidental
no warnings 'qw';
-use Test::Command tests => (36*3);
+use Test::Command tests => (38*3);
my $icli = 'bin/icli -f t/in/status.dat -c t/in/objects.cache';
@@ -91,6 +91,16 @@ $cmd->exit_is_num(0);
$cmd->stdout_is_file('t/out/list_services_single');
$cmd->stderr_is_eq($EMPTY);
+$cmd = Test::Command->new(cmd => "$icli -lh -v");
+$cmd->exit_is_num(0);
+$cmd->stdout_is_file('t/out/list_hosts_v');
+$cmd->stderr_is_eq($EMPTY);
+
+$cmd = Test::Command->new(cmd => "$icli -ls -v");
+$cmd->exit_is_num(0);
+$cmd->stdout_is_file('t/out/list_services_v');
+$cmd->stderr_is_eq($EMPTY);
+
$cmd = Test::Command->new(cmd => "$icli -lq");
$cmd->exit_is_num(0);
$cmd->stdout_is_file('t/out/list_queue');