Skip to content

Commit

Permalink
test for --multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
mdom committed Apr 28, 2014
1 parent 2124bcd commit 365d6fb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
22 changes: 22 additions & 0 deletions t/04multiline.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/perl

use strict;
use warnings;
use Test::More;
use FindBin qw($Bin);
use lib "$Bin/lib";
use Test::Dategrep;

$ENV{DATEGREP_DEFAULT_FORMAT} = '%Y-%m-%d %H:%M';

test_dategrep [
'--start=2014-03-23 14:16', '--end=2014-03-23 14:18', '--multiline',"$Bin/files/multiline01.log"
],
<<'EOF', 'test --multiline';
2014-03-23 14:16 line 1
more information
2014-03-23 14:17 line 1
more information
EOF

done_testing();
8 changes: 8 additions & 0 deletions t/files/multiline01.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
2014-03-23 14:14 line 1
more information
2014-03-23 14:15 line 1
more information
2014-03-23 14:16 line 1
more information
2014-03-23 14:17 line 1
more information

0 comments on commit 365d6fb

Please sign in to comment.