The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
use Test::Clustericious::Command;
use Test::More;

requires undef, 3;
mirror 'example/etc' => 'etc';
mirror 'bin' => 'bin';

run_ok('clustericious', 'configpath')
  ->exit_is(0)
  ->tap(sub {
    my @list = split /\r?\n/, shift->out;
    subtest 'valid directories' => sub {
      plan tests => scalar @list;
      ok -d $_, "$_ exists" for @list;
    };
  })
  ->note;