MOS Source Code
Loading...
Searching...
No Matches
test_cmdline_parser.c File Reference
#include "test_engine_impl.h"
#include <mos/lib/cmdline.h>
+ Include dependency graph for test_cmdline_parser.c:

Go to the source code of this file.

Functions

static void simple_cmdline (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_simple_cmdline (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_simple_cmdline_L, __LINE__), { __mos_test_wrapped_test_simple_cmdline, "simple_cmdline" })
 
static void simple_cmdline (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void one_arg_with_an_option (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_one_arg_with_an_option (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_one_arg_with_an_option_L, __LINE__), { __mos_test_wrapped_test_one_arg_with_an_option, "one_arg_with_an_option" })
 
static void one_arg_with_an_option (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void one_arg_with_multiple_options (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_one_arg_with_multiple_options (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_one_arg_with_multiple_options_L, __LINE__), { __mos_test_wrapped_test_one_arg_with_multiple_options, "one_arg_with_multiple_options" })
 
static void one_arg_with_multiple_options (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void multi_args_with_multiple_options (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_multi_args_with_multiple_options (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_multi_args_with_multiple_options_L, __LINE__), { __mos_test_wrapped_test_multi_args_with_multiple_options, "multi_args_with_multiple_options" })
 
static void multi_args_with_multiple_options (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void quoted_args (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_quoted_args (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_quoted_args_L, __LINE__), { __mos_test_wrapped_test_quoted_args, "quoted_args" })
 
static void quoted_args (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void quoted_args_with_spaces (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_quoted_args_with_spaces (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_quoted_args_with_spaces_L, __LINE__), { __mos_test_wrapped_test_quoted_args_with_spaces, "quoted_args_with_spaces" })
 
static void quoted_args_with_spaces (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void quoted_args_with_spaces_and_commas (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_quoted_args_with_spaces_and_commas (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_quoted_args_with_spaces_and_commas_L, __LINE__), { __mos_test_wrapped_test_quoted_args_with_spaces_and_commas, "quoted_args_with_spaces_and_commas" })
 
static void quoted_args_with_spaces_and_commas (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void quoted_args_with_spaces_and_commas_and_equals (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_quoted_args_with_spaces_and_commas_and_equals (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_quoted_args_with_spaces_and_commas_and_equals_L, __LINE__), { __mos_test_wrapped_test_quoted_args_with_spaces_and_commas_and_equals, "quoted_args_with_spaces_and_commas_and_equals" })
 
static void quoted_args_with_spaces_and_commas_and_equals (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 
static void quotation_with_escaped_quotation_marks (mos_test_result_t *, bool *, bool *)
 
static void __mos_test_wrapped_test_quotation_with_escaped_quotation_marks (mos_test_result_t *result)
 
 MOS_PUT_IN_SECTION (".mos.test_cases", mos_test_func_t, MOS_CONCAT(test_cases_quotation_with_escaped_quotation_marks_L, __LINE__), { __mos_test_wrapped_test_quotation_with_escaped_quotation_marks, "quotation_with_escaped_quotation_marks" })
 
static void quotation_with_escaped_quotation_marks (mos_test_result_t *_MT_result, __maybe_unused bool *_mt_test_skipped, __maybe_unused bool *_mt_loop_leave)
 

Function Documentation

◆ simple_cmdline() [1/2]

static void simple_cmdline ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_simple_cmdline()

static void __mos_test_wrapped_test_simple_cmdline ( mos_test_result_t * result)
static

Definition at line 7 of file test_cmdline_parser.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [1/9]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_simple_cmdline_L, __LINE__) ,
{ __mos_test_wrapped_test_simple_cmdline, "simple_cmdline" }  )

◆ simple_cmdline() [2/2]

static void simple_cmdline ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 7 of file test_cmdline_parser.c.

◆ one_arg_with_an_option() [1/2]

static void one_arg_with_an_option ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_one_arg_with_an_option()

static void __mos_test_wrapped_test_one_arg_with_an_option ( mos_test_result_t * result)
static

Definition at line 27 of file test_cmdline_parser.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [2/9]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_one_arg_with_an_option_L, __LINE__) ,
{ __mos_test_wrapped_test_one_arg_with_an_option, "one_arg_with_an_option" }  )

◆ one_arg_with_an_option() [2/2]

static void one_arg_with_an_option ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 27 of file test_cmdline_parser.c.

◆ one_arg_with_multiple_options() [1/2]

static void one_arg_with_multiple_options ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_one_arg_with_multiple_options()

static void __mos_test_wrapped_test_one_arg_with_multiple_options ( mos_test_result_t * result)
static

Definition at line 38 of file test_cmdline_parser.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [3/9]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_one_arg_with_multiple_options_L, __LINE__) ,
{ __mos_test_wrapped_test_one_arg_with_multiple_options, "one_arg_with_multiple_options" }  )

◆ one_arg_with_multiple_options() [2/2]

static void one_arg_with_multiple_options ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 38 of file test_cmdline_parser.c.

◆ multi_args_with_multiple_options() [1/2]

static void multi_args_with_multiple_options ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_multi_args_with_multiple_options()

static void __mos_test_wrapped_test_multi_args_with_multiple_options ( mos_test_result_t * result)
static

Definition at line 49 of file test_cmdline_parser.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [4/9]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_multi_args_with_multiple_options_L, __LINE__) ,
{ __mos_test_wrapped_test_multi_args_with_multiple_options, "multi_args_with_multiple_options" }  )

◆ multi_args_with_multiple_options() [2/2]

static void multi_args_with_multiple_options ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 49 of file test_cmdline_parser.c.

◆ quoted_args() [1/2]

static void quoted_args ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_quoted_args()

static void __mos_test_wrapped_test_quoted_args ( mos_test_result_t * result)
static

Definition at line 62 of file test_cmdline_parser.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [5/9]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_quoted_args_L, __LINE__) ,
{ __mos_test_wrapped_test_quoted_args, "quoted_args" }  )

◆ quoted_args() [2/2]

static void quoted_args ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 62 of file test_cmdline_parser.c.

◆ quoted_args_with_spaces() [1/2]

static void quoted_args_with_spaces ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_quoted_args_with_spaces()

static void __mos_test_wrapped_test_quoted_args_with_spaces ( mos_test_result_t * result)
static

Definition at line 75 of file test_cmdline_parser.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [6/9]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_quoted_args_with_spaces_L, __LINE__) ,
{ __mos_test_wrapped_test_quoted_args_with_spaces, "quoted_args_with_spaces" }  )

◆ quoted_args_with_spaces() [2/2]

static void quoted_args_with_spaces ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 75 of file test_cmdline_parser.c.

◆ quoted_args_with_spaces_and_commas() [1/2]

static void quoted_args_with_spaces_and_commas ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_quoted_args_with_spaces_and_commas()

static void __mos_test_wrapped_test_quoted_args_with_spaces_and_commas ( mos_test_result_t * result)
static

Definition at line 88 of file test_cmdline_parser.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [7/9]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_quoted_args_with_spaces_and_commas_L, __LINE__) ,
{ __mos_test_wrapped_test_quoted_args_with_spaces_and_commas, "quoted_args_with_spaces_and_commas" }  )

◆ quoted_args_with_spaces_and_commas() [2/2]

static void quoted_args_with_spaces_and_commas ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 88 of file test_cmdline_parser.c.

◆ quoted_args_with_spaces_and_commas_and_equals() [1/2]

static void quoted_args_with_spaces_and_commas_and_equals ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_quoted_args_with_spaces_and_commas_and_equals()

static void __mos_test_wrapped_test_quoted_args_with_spaces_and_commas_and_equals ( mos_test_result_t * result)
static

Definition at line 101 of file test_cmdline_parser.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [8/9]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_quoted_args_with_spaces_and_commas_and_equals_L, __LINE__) ,
{ __mos_test_wrapped_test_quoted_args_with_spaces_and_commas_and_equals, "quoted_args_with_spaces_and_commas_and_equals" }  )

◆ quoted_args_with_spaces_and_commas_and_equals() [2/2]

static void quoted_args_with_spaces_and_commas_and_equals ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 101 of file test_cmdline_parser.c.

◆ quotation_with_escaped_quotation_marks() [1/2]

static void quotation_with_escaped_quotation_marks ( mos_test_result_t * ,
bool * ,
bool *  )
static

◆ __mos_test_wrapped_test_quotation_with_escaped_quotation_marks()

static void __mos_test_wrapped_test_quotation_with_escaped_quotation_marks ( mos_test_result_t * result)
static

Definition at line 114 of file test_cmdline_parser.c.

+ Here is the call graph for this function:

◆ MOS_PUT_IN_SECTION() [9/9]

MOS_PUT_IN_SECTION ( ".mos.test_cases" ,
mos_test_func_t ,
MOS_CONCAT(test_cases_quotation_with_escaped_quotation_marks_L, __LINE__) ,
{ __mos_test_wrapped_test_quotation_with_escaped_quotation_marks, "quotation_with_escaped_quotation_marks" }  )

◆ quotation_with_escaped_quotation_marks() [2/2]

static void quotation_with_escaped_quotation_marks ( mos_test_result_t * _MT_result,
__maybe_unused bool * _mt_test_skipped,
__maybe_unused bool * _mt_loop_leave )
static

Definition at line 114 of file test_cmdline_parser.c.