Skip to content

Commit

Permalink
Add test for inline ssh_args (rsnapshot#212).
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Aug 10, 2019
1 parent e4716ac commit 9335240
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions t/ssh_args/conf/ssh_args_inline.conf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config_version 1.2
snapshot_root @SNAP@
cmd_rsync @RSYNC@
cmd_ssh @SSH@
interval hourly 6
backup @TEST_SSH_USER@@localhost:@TEST@/ssh_args/conf/ssh_args.conf localhost/ ssh_args=-p22
3 changes: 2 additions & 1 deletion t/ssh_args/ssh_args.t.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!@PERL@

use strict;
use Test::More tests => 2;
use Test::More tests => 3;
use SysWrap;

# make sure snap_root directory does not exist before we start
Expand All @@ -13,4 +13,5 @@ SKIP: {
my $cant_ssh = system("$ssh_test");
skip("Cant SSH with \"$ssh_test\"", 1) if ($cant_ssh);
ok(!rsnapshot("-c @TEST@/ssh_args/conf/ssh_args.conf hourly"), "ssh_args parsed");
ok(!rsnapshot("-c @TEST@/ssh_args/conf/ssh_args_inline.conf hourly"), "ssh_args_inline parsed");
}

0 comments on commit 9335240

Please sign in to comment.