#!/usr/bin/perl

use strict;
use Test::More tests => 4;
use SysWrap;

# rsync_wait_between_tries	1	-> okay
ok(0 == rsnapshot("-c /home/runner/work/rsnapshot/rsnapshot//t//rsync_wait_between_tries/conf/rsync_wait_between_tries_ok.conf configtest"));

# rsync_wait_between_tries	-1	-> not okay
ok(0 != rsnapshot("-c /home/runner/work/rsnapshot/rsnapshot//t//rsync_wait_between_tries/conf/rsync_wait_between_tries_fail_negative.conf configtest"));

# rsync_wait_between_tries	-1	-> not okay
ok(0 != rsnapshot("-c /home/runner/work/rsnapshot/rsnapshot//t//rsync_wait_between_tries/conf/rsync_wait_between_tries_fail_notanumber.conf configtest"));

# rsync_wait_between_tries	-1	-> not okay
ok(0 != rsnapshot("-c /home/runner/work/rsnapshot/rsnapshot//t//rsync_wait_between_tries/conf/rsync_wait_between_tries_fail_floatingpoint.conf configtest"));
