Sometime it is necessary to execute a test application on a different machine than the one running the qmtest application itself. For example, if the test involves executing an application previously cross-compiled, the binary needs to be uploaded to an appropriate host and run there.
QMTest provides a host abstraction for this purpose. To use this mechanism, test classes need to provide explicit support for it. A number of built-in test classes support cross-testing.
To run the compile
test on a remote target
machine, specify a CompilationTest.target
variable in
the context file to contain a host descriptor:
CompilationTest.compiler=/path/to/cross_compiler CompilationTest.target=ssh_host.SSHHost(host_name="192.168.0.100")
This will run the compiled executable on the machine with the IP address
192.168.0.100
, using ssh for communication.