OpenVPN
|
#include "config.h"
#include "syshead.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <setjmp.h>
#include <cmocka.h>
#include <assert.h>
#include <stdbool.h>
#include "argv.h"
#include "buffer.h"
#include "test_common.h"
Go to the source code of this file.
Macros | |
#define | PATH1 "/s p a c e" |
#define | PATH2 "/foo bar/baz" |
#define | PARAM1 "param1" |
#define | PARAM2 "param two" |
#define | SCRIPT_CMD "\"" PATH1 PATH2 "\"" PARAM1 "\"" PARAM2 "\"" |
#define PARAM1 "param1" |
Definition at line 20 of file test_argv.c.
#define PARAM2 "param two" |
Definition at line 21 of file test_argv.c.
#define PATH1 "/s p a c e" |
Definition at line 18 of file test_argv.c.
#define PATH2 "/foo bar/baz" |
Definition at line 19 of file test_argv.c.
#define SCRIPT_CMD "\"" PATH1 PATH2 "\"" PARAM1 "\"" PARAM2 "\"" |
Definition at line 22 of file test_argv.c.
int __wrap_parse_line | ( | const char * | line, |
char ** | p, | ||
const int | n, | ||
const char * | file, | ||
const int | line_num, | ||
int | msglevel, | ||
struct gc_arena * | gc | ||
) |
|
static |
Definition at line 214 of file test_argv.c.
References argv_free(), argv_insert_head(), argv_new(), and PATH1.
Referenced by main().
|
static |
Definition at line 228 of file test_argv.c.
References argv::argc, argv::argv, argv_free(), argv_insert_head(), argv_new(), argv_printf(), PATH1, and PATH2.
Referenced by main().
|
static |
Definition at line 154 of file test_argv.c.
References argv::argc, argv_free(), argv_new(), argv_parse_cmd(), argv_printf_cat(), PATH1, and SCRIPT_CMD.
Referenced by main().
|
static |
Definition at line 143 of file test_argv.c.
References argv::argc, argv_free(), argv_new(), argv_parse_cmd(), and SCRIPT_CMD.
Referenced by main().
|
static |
Definition at line 81 of file test_argv.c.
References argv::argc, argv_free(), argv_new(), argv_printf(), PATH1, and PATH2.
Referenced by main().
|
static |
Definition at line 58 of file test_argv.c.
References argv::argc, argv::argv, argv_free(), argv_new(), argv_printf(), and PATH1.
Referenced by main().
|
static |
Definition at line 98 of file test_argv.c.
References argv::argc, argv_free(), argv_new(), argv_printf(), PARAM1, and PATH1.
Referenced by main().
|
static |
Definition at line 70 of file test_argv.c.
References argv::argc, argv_free(), argv_new(), and argv_printf().
Referenced by main().
|
static |
Definition at line 121 of file test_argv.c.
References argv::argc, argv::argv, argv_free(), argv_new(), and argv_printf().
Referenced by main().
|
static |
Definition at line 35 of file test_argv.c.
References argv::argc, argv_free(), argv_new(), argv_printf(), PATH1, and PATH2.
Referenced by main().
|
static |
Definition at line 46 of file test_argv.c.
References argv::argc, argv_free(), argv_new(), argv_printf(), argv_printf_cat(), PARAM1, PATH1, and PATH2.
Referenced by main().
|
static |
Definition at line 166 of file test_argv.c.
References argv::argc, argv_free(), argv_new(), argv_printf(), argv_printf_cat(), PARAM1, PARAM2, PATH1, and PATH2.
Referenced by main().
|
static |
Definition at line 179 of file test_argv.c.
References argv_free(), argv_new(), argv_str(), gc_free(), gc_new(), and PA_BRACKET.
Referenced by main().
|
static |
Definition at line 193 of file test_argv.c.
References argv_free(), argv_new(), argv_printf(), argv_printf_cat(), argv_str(), gc_free(), gc_new(), PA_BRACKET, PARAM1, PARAM2, PATH1, and PATH2.
Referenced by main().
int main | ( | void | ) |
Definition at line 254 of file test_argv.c.
References argv_insert_head__empty_argv__head_only(), argv_insert_head__non_empty_argv__head_added(), argv_parse_cmd__command_and_extra_options__argc_correct(), argv_parse_cmd__command_string__argc_correct(), argv_printf__combined_path_with_spaces__argc_correct(), argv_printf__embedded_format_directive__replaced_in_output(), argv_printf__empty_parameter__argc_correct(), argv_printf__group_sep_in_arg__fail_no_ouput(), argv_printf__long_args__data_correct(), argv_printf__multiple_spaces_in_format__parsed_as_one(), argv_printf_cat__multiple_spaces_in_format__parsed_as_one(), argv_printf_cat__used_twice__argc_correct(), argv_str__empty_argv__empty_output(), argv_str__multiple_argv__correct_output(), and openvpn_unit_test_setup().