#include <time.h>
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
struct | _stream_data |
struct | _exec_data |
Defines | |
#define | SHELLCMD "/bin/sh" |
#define | SHELLCMD_ARGS "-c" |
#define | SHELLCMD_ARGS_STR "-c" |
#define | FAILURE_INFO_TIMEOUT "timeout" |
#define | POLL_TIMEOUT_MS 100 |
#define | POLL_TIMEOUT_US (1000*POLL_TIMEOUT_MS) |
#define | COMMON_SOFT_TIMEOUT 90 |
#define | COMMON_HARD_TIMEOUT 5 |
Typedefs | |
typedef struct _stream_data | stream_data |
typedef struct _exec_data | exec_data |
Enumerations | |
enum | _stream_output_redirection { DONT_REDIRECT_OUTPUT = 0, REDIRECT_OUTPUT } |
Functions | |
void | executor_init (testrunner_lite_options *opts) |
int | execute (const char *command, exec_data *data) |
void | init_exec_data (exec_data *data) |
void | clean_exec_data (exec_data *data) |
void | init_stream_data (stream_data *data, int allocate) |
void | clean_stream_data (stream_data *data) |
void | kill_pgroup (int pgroup, int sig) |
void | executor_close () |
#define COMMON_HARD_TIMEOUT 5 |
Definition at line 52 of file executor.h.
#define COMMON_SOFT_TIMEOUT 90 |
Definition at line 51 of file executor.h.
#define FAILURE_INFO_TIMEOUT "timeout" |
Definition at line 48 of file executor.h.
#define POLL_TIMEOUT_MS 100 |
Definition at line 49 of file executor.h.
#define POLL_TIMEOUT_US (1000*POLL_TIMEOUT_MS) |
Definition at line 50 of file executor.h.
#define SHELLCMD "/bin/sh" |
Definition at line 41 of file executor.h.
#define SHELLCMD_ARGS "-c" |
Definition at line 46 of file executor.h.
#define SHELLCMD_ARGS_STR "-c" |
Definition at line 47 of file executor.h.
typedef struct _exec_data exec_data |
Definition at line 86 of file executor.h.
typedef struct _stream_data stream_data |
Definition at line 63 of file executor.h.
void clean_exec_data | ( | exec_data * | data | ) |
Definition at line 833 of file executor.c.
void clean_stream_data | ( | stream_data * | data | ) |
Clean stream_data structure
data | Pointer to data |
Definition at line 858 of file executor.c.
int execute | ( | const char * | command, | |
exec_data * | data | |||
) |
Execute a test step command
command | Command to execute | |
data | Input and output data controlling execution |
Definition at line 772 of file executor.c.
void executor_close | ( | ) |
Clean up for executor
Definition at line 899 of file executor.c.
void executor_init | ( | testrunner_lite_options * | opts | ) |
Sets the remote host for executor
opts | testrunner lite options |
Definition at line 889 of file executor.c.
void init_exec_data | ( | exec_data * | data | ) |
Initialize exec_data structure
data | Pointer to data |
Definition at line 821 of file executor.c.
void init_stream_data | ( | stream_data * | data, | |
int | allocate | |||
) |
Initialize stream_data structure
data | Pointer to data | |
allocate | Number of bytes to allocate for string buffer |
Definition at line 843 of file executor.c.
void kill_pgroup | ( | int | pgroup, | |
int | sig | |||
) |
Send signal to process group of a test process
pgroup | Process group ID for signal | |
sig | Signal number |
Definition at line 866 of file executor.c.