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__, __func__)
 
#define TEST_ERROR(format, ...)
 
#define TEST_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)
 
static void check_modified_arguments (const test *test, char **command_line, int *rc)
 
int TestClientCmdLine (int argc, char *argv[])
 

Variables

static const test tests []
 

Macro Definition Documentation

◆ DRIVE_REDIRECT_PATH

#define DRIVE_REDIRECT_PATH   "/tmp"

◆ printref

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

◆ TEST_ERROR

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

◆ TEST_FAILURE

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

Typedef Documentation

◆ validate_settings_pr

typedef BOOL(* validate_settings_pr) (rdpSettings *settings)

Function Documentation

◆ check_modified_arguments()

static void check_modified_arguments ( const test *  test,
char **  command_line,
int *  rc 
)
static
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

const test tests[]
static