mirror of
https://github.com/rsnapshot/rsnapshot.git
synced 2025-11-20 18:29:31 +01:00
12 lines
515 B
Perl
12 lines
515 B
Perl
#!@PERL@
|
|
|
|
# Testing: Only pass test, if both cmd_preexec and cmd_postexec succeeds and the exit-code matches
|
|
|
|
use strict;
|
|
use Test::More tests => 4;
|
|
use SysWrap;
|
|
|
|
ok(0 != rsnapshot("-c @TEST@/cmd-post_pre-exec/conf/pre-false-post-false.conf hourly"));
|
|
ok(0 != rsnapshot("-c @TEST@/cmd-post_pre-exec/conf/pre-false-post-true.conf hourly"));
|
|
ok(0 != rsnapshot("-c @TEST@/cmd-post_pre-exec/conf/pre-true-post-false.conf hourly"));
|
|
ok(0 == rsnapshot("-c @TEST@/cmd-post_pre-exec/conf/pre-true-post-true.conf hourly"));
|