mirror of
https://github.com/rsnapshot/rsnapshot.git
synced 2025-11-19 09:49:36 +01:00
18 lines
420 B
Perl
18 lines
420 B
Perl
#!@PERL@
|
|
|
|
use strict;
|
|
use Test::More tests => 2;
|
|
use SysWrap;
|
|
|
|
# make sure snapshot_root directory does not exist before we start
|
|
ok(! remove_snapshot_root(),
|
|
" snapshot root does not exist before testing starts");
|
|
|
|
# check for GNU cp
|
|
my @lines = `@CP@ --help 2>/dev/null | grep -i 'gnu'`;
|
|
|
|
SKIP: {
|
|
skip('GNU cp not found', 1) if (@lines == 0);
|
|
|
|
ok(0 == rsnapshot("-c @TEST@/gnu_cp/conf/gnu_cp.conf hourly 2>&1"));
|
|
}
|