summaryrefslogtreecommitdiff
path: root/test/feh.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-05 00:38:15 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-05 00:38:15 +0100
commit2b64734e7a51ff556326df2991d9e71dda9d2a80 (patch)
treea42f84aec494416666e99cea1cb4a8b8c1d20727 /test/feh.t
parentc9077797656d710d24b84d9a8523c4ffc8515b38 (diff)
Add test for --recursive
Diffstat (limited to 'test/feh.t')
-rw-r--r--test/feh.t10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/feh.t b/test/feh.t
index c868382..67b6f36 100644
--- a/test/feh.t
+++ b/test/feh.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
use 5.010;
-use Test::Command tests => 60;
+use Test::Command tests => 63;
$ENV{HOME} = 'test';
@@ -119,6 +119,14 @@ $cmd->exit_is_num(0);
$cmd->stdout_is_file('test/list/format_reverse');
$cmd->stderr_like($re_warning);
+$cmd = Test::Command->new(
+ cmd => "$feh --list --recursive --sort filename test/ok"
+);
+
+$cmd->exit_is_num(0);
+$cmd->stdout_is_file('test/list/filename_recursive');
+$cmd->stderr_is_eq('');
+
$cmd = Test::Command->new(cmd => "$feh --customlist '%f; %h; %l; %m; %n; %p; "
. "%s; %t; %u; %w' $images");