From 9335240d44bc0f9ef700d7e658169055179ca959 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 11 Aug 2019 09:40:02 +1000 Subject: [PATCH] Add test for inline ssh_args (#212). --- t/ssh_args/conf/ssh_args_inline.conf.in | 6 ++++++ t/ssh_args/ssh_args.t.in | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 t/ssh_args/conf/ssh_args_inline.conf.in diff --git a/t/ssh_args/conf/ssh_args_inline.conf.in b/t/ssh_args/conf/ssh_args_inline.conf.in new file mode 100644 index 00000000..5d7169d6 --- /dev/null +++ b/t/ssh_args/conf/ssh_args_inline.conf.in @@ -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 diff --git a/t/ssh_args/ssh_args.t.in b/t/ssh_args/ssh_args.t.in index 897d77a2..e30b87e0 100644 --- a/t/ssh_args/ssh_args.t.in +++ b/t/ssh_args/ssh_args.t.in @@ -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 @@ -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"); }