Commit | Line | Data |
f129bfaf |
1 | use strictures 1; |
2 | use Test::More; |
3 | |
abef6e5b |
4 | $ENV{OBJECT_REMOTE_TEST_LOGGER} = 1; |
f129bfaf |
5 | |
55c0d020 |
6 | use Object::Remote::Connector::Local; |
7 | use Object::Remote::Connector::SSH; |
f129bfaf |
8 | |
9 | my $defaults = Object::Remote::Connector::Local->new; |
f129bfaf |
10 | my $normal = $defaults->final_perl_command; |
5ccce2d5 |
11 | my $ssh = Object::Remote::Connector::SSH->new(ssh_to => 'testhost')->final_perl_command; |
f129bfaf |
12 | |
466ee2c4 |
13 | is($defaults->timeout, 10, 'Default connection timeout value is correct'); |
f129bfaf |
14 | is($defaults->watchdog_timeout, undef, 'Watchdog is not enabled by default'); |
f129bfaf |
15 | is($defaults->stderr, undef, 'Child process STDERR is clone of parent process STDERR by default'); |
16 | |
5ccce2d5 |
17 | is_deeply($normal, ['perl', '-'], 'Default Perl interpreter arguments correct'); |
18 | is_deeply($ssh, [qw(ssh -A testhost), "perl -"], "Arguments using ssh are correct"); |
f129bfaf |
19 | |
55c0d020 |
20 | done_testing; |
f129bfaf |
21 | |