FreeRDP
TestClientCmdLine.c File Reference
#include <freerdp/client.h>
#include <freerdp/client/cmdline.h>
#include <freerdp/settings.h>
#include <winpr/cmdline.h>
#include <winpr/spec.h>
#include <winpr/strlst.h>
#include <winpr/collections.h>

Macros

#define printref()   printf("%s:%d: in function %-40s:", __FILE__, __LINE__, __FUNCTION__)
 
#define ERROR(format, ...)
 
#define FAILURE(format, ...)
 
#define DRIVE_REDIRECT_PATH   "/tmp"
 

Typedefs

typedef BOOL(* validate_settings_pr) (rdpSettings *settings)
 

Functions

static void print_test_title (int argc, char **argv)
 
static INLINE BOOL testcase (const char *name, char **argv, size_t argc, int expected_return, validate_settings_pr validate_settings)
 
static BOOL check_settings_smartcard_no_redirection (rdpSettings *settings)
 
void check_modified_arguments (test *test, char **command_line, int *rc)
 
int TestClientCmdLine (int argc, char *argv[])
 

Variables

static test tests []
 

Macro Definition Documentation

◆ DRIVE_REDIRECT_PATH

#define DRIVE_REDIRECT_PATH   "/tmp"

◆ ERROR

#define ERROR (   format,
  ... 
)
Value:
do \
{ \
fprintf(stderr, format, ##__VA_ARGS__); \
printref(); \
printf(format, ##__VA_ARGS__); \
fflush(stdout); \
} while (0)

◆ FAILURE

#define FAILURE (   format,
  ... 
)
Value:
do \
{ \
printref(); \
printf(" FAILURE "); \
printf(format, ##__VA_ARGS__); \
fflush(stdout); \
} while (0)

◆ printref

#define printref ( )    printf("%s:%d: in function %-40s:", __FILE__, __LINE__, __FUNCTION__)

Typedef Documentation

◆ validate_settings_pr

typedef BOOL(* validate_settings_pr) (rdpSettings *settings)

Function Documentation

◆ check_modified_arguments()

void check_modified_arguments ( test *  test,
char **  command_line,
int *  rc 
)
Here is the caller graph for this function:

◆ check_settings_smartcard_no_redirection()

static BOOL check_settings_smartcard_no_redirection ( rdpSettings *  settings)
static
Here is the call graph for this function:

◆ print_test_title()

static void print_test_title ( int  argc,
char **  argv 
)
static
Here is the caller graph for this function:

◆ testcase()

static INLINE BOOL testcase ( const char *  name,
char **  argv,
size_t  argc,
int  expected_return,
validate_settings_pr  validate_settings 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestClientCmdLine()

int TestClientCmdLine ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

Variable Documentation

◆ tests

test tests[]
static