summaryrefslogtreecommitdiff
path: root/test/50-efa.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-05-11 17:48:45 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-05-11 17:48:45 +0200
commitb0eb2aa49c97188d4fd25b609f360d5da8c09bca (patch)
treee7a298f66c14c11b83a50b393a1be7d4101f5879 /test/50-efa.t
parentd2f853a93688c51c3dc0d563b95b5de6fe879a0e (diff)
Add some actual parser tests
Diffstat (limited to 'test/50-efa.t')
-rw-r--r--test/50-efa.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/50-efa.t b/test/50-efa.t
index c09e582..21bd515 100644
--- a/test/50-efa.t
+++ b/test/50-efa.t
@@ -2,10 +2,11 @@
use strict;
use warnings;
use 5.010;
-use Test::Command tests => 51;
+use Test::Command tests => 57;
my $efa = 'bin/efa';
my $testarg = "E HBf MH HBf";
+my $test_parse = "--test-parse $testarg";
my $re_usage = qr{Insufficient to/from arguments, see \S*efa --help for usage};
my $re_version = qr{\S*efa version \S+};
@@ -93,3 +94,12 @@ for my $opt (qw/-v --version/) {
$cmd->stdout_like($re_version);
$cmd->stderr_is_eq('');
}
+
+
+for my $file (qw/e_hbf_mh_hbf e_hbf_du_hbf.ice/) {
+ $cmd = Test::Command->new(cmd => "$efa $test_parse < test/dump_$file");
+
+ $cmd->exit_is_num(0);
+ $cmd->stdout_is_file("test/parse_$file");
+ $cmd->stderr_is_eq('');
+}