remote_executor.h File Reference

#include "testrunnerlite.h"

Go to the source code of this file.

Functions

void ssh_executor_init (const char *hostname)
int ssh_execute (const char *hostname, const char *command)
int ssh_kill (const char *hostname, pid_t id)
int ssh_check_conn (const char *hostname)
void ssh_clean (const char *hostname, pid_t id)
void ssh_executor_close (const char *hostname)


Function Documentation

int ssh_check_conn ( const char *  hostname  ) 

Tries to check if ssh connections are still working

Parameters:
hostname SUT address
Returns:
0 or ssh error code

Definition at line 179 of file remote_executor.c.

void ssh_clean ( const char *  hostname,
pid_t  id 
)

Clean temporary file from target machine

Parameters:
hostname SUT address
id PID of the test step

Definition at line 223 of file remote_executor.c.

int ssh_execute ( const char *  hostname,
const char *  command 
)

Executes a command using ssh

Parameters:
hostname SUT address
command Command to execute
Returns:
Does not return in success, error code from exec in case of error

Definition at line 133 of file remote_executor.c.

void ssh_executor_close ( const char *  hostname  ) 

Clean up

Parameters:
hostname SUT address

Definition at line 248 of file remote_executor.c.

void ssh_executor_init ( const char *  hostname  ) 

Init the ssh executor

Definition at line 97 of file remote_executor.c.

int ssh_kill ( const char *  hostname,
pid_t  id 
)

Tries to kill program started by ssh and removes temporary file

Parameters:
hostname SUT address
id PID of the test step

Definition at line 193 of file remote_executor.c.


Generated on Wed Nov 10 14:13:01 2010 for testrunner-lite by  doxygen 1.5.6