A number of test classes delegate the execution of executables to
a dedicated Host
class, for example to allow parts
of the test to be run on a different platform (such as when cross-compiling
and cross-testing). To achieve that, a number of Host
subclasses are provided that can be used to execute code in different ways.
Typically, a test class will query the Host
instance
to use from a context variable.
An SSHHost
is accessible via ssh
or a similar program. The SSHHost
host uses the following parameters.
The name of the remote host.
The path to the remote shell program.
The arguments to the remote shell program.
The path to the remote copy program.
The arguments to the remote copy program.
The default directory on the remote system.