3 # Some tests for launching external commands
6 use Test
::More
'no_plan';
14 my $touch_fakessh='touch-fakessh';
15 $touch_fakessh.='.bat' if ($^O
=~ /(msys|win32)/i);
18 cleanup
'touch-fakessh';
21 # make our ssh command one word only
22 write_file
($touch_fakessh,'echo hello > fakessh');
23 `chmod u+x $touch_fakessh`;
24 # add our fake ssh command to the environment
25 $ENV{DARCS_SSH
}="./$touch_fakessh";
26 $ENV{DARCS_SCP
}="./$touch_fakessh";
27 $ENV{DARCS_SFTP
}="./$touch_fakessh";
28 # first test the DARCS_SSH environment variable
29 darcs
(qw(get foo.bar:baz));
32 # now make sure that we don't launch ssh for nothing
36 darcs
(qw(get http://foo.bar:baz));