in reply to How do I allow my test script to get rsync to archive file ownership?

What are your tests trying to verify? Bear in mind that Net::OpenSSH and rsync have their own test suites, so you don't need to retest functionality that they are responsible for.
  • Comment on Re: How do I allow my test script to get rsync to archive file ownership?

Replies are listed 'Best First'.
Re^2: How do I allow my test script to get rsync to archive file ownership?
by nysus (Parson) on Jan 22, 2018 at 18:50 UTC

    I'm testing that my objects which contain wrappers to Net::OpenSSH (which wraps rsync) are properly syncing files to and from a server. So for example, I can rsync easily and safely with something like this:

    # set up my server my $server = Server->new('host_name'); $server->set_remote_dir('/my/files'); $server->rsync_dir;

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks