summaryrefslogtreecommitdiff
path: root/test/50-efa.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-05-11 16:33:18 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-05-11 16:33:18 +0200
commit849e589bf373d777cb27b03527b19cd7a3cf6e34 (patch)
tree298a3b333b13ececb4b46d5a556cfc94bbf4cbac /test/50-efa.t
parent1c1cd84f9ab59809ad3e8e8ed12c8832ff6a33fa (diff)
Add short option for --version
Diffstat (limited to 'test/50-efa.t')
-rw-r--r--test/50-efa.t12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/50-efa.t b/test/50-efa.t
index 418e17e..c09e582 100644
--- a/test/50-efa.t
+++ b/test/50-efa.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
use 5.010;
-use Test::Command tests => 48;
+use Test::Command tests => 51;
my $efa = 'bin/efa';
my $testarg = "E HBf MH HBf";
@@ -86,8 +86,10 @@ for my $opt (qw/-d --date/) {
$cmd->stderr_is_eq($err_date);
}
-$cmd = Test::Command->new(cmd => "$efa --version");
+for my $opt (qw/-v --version/) {
+ $cmd = Test::Command->new(cmd => "$efa $opt");
-$cmd->exit_is_num(0);
-$cmd->stdout_like($re_version);
-$cmd->stderr_is_eq('');
+ $cmd->exit_is_num(0);
+ $cmd->stdout_like($re_version);
+ $cmd->stderr_is_eq('');
+}