aboutsummaryrefslogtreecommitdiffstats
path: root/test/test/test_cmdline.h
blob: 1854caf8fdac41fb931534065575d475f7238b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright(c) 2010-2014 Intel Corporation
 */

#ifndef TEST_CMDLINE_H_
#define TEST_CMDLINE_H_

#define CMDLINE_TEST_BUFSIZE 64

/* cmdline_parse_num tests */
int test_parse_num_valid(void);
int test_parse_num_invalid_data(void);
int test_parse_num_invalid_param(void);

/* cmdline_parse_etheraddr tests */
int test_parse_etheraddr_valid(void);
int test_parse_etheraddr_invalid_data(void);
int test_parse_etheraddr_invalid_param(void);

/* cmdline_parse_portlist tests */
int test_parse_portlist_valid(void);
int test_parse_portlist_invalid_data(void);
int test_parse_portlist_invalid_param(void);

/* cmdline_parse_ipaddr tests */
int test_parse_ipaddr_valid(void);
int test_parse_ipaddr_invalid_data(void);
int test_parse_ipaddr_invalid_param(void);

/* cmdline_parse_string tests */
int test_parse_string_valid(void);
int test_parse_string_invalid_data(void);
int test_parse_string_invalid_param(void);

/* cmdline_cirbuf tests */
int test_cirbuf_invalid_param(void);
int test_cirbuf_char(void);
int test_cirbuf_string(void);
int test_cirbuf_align(void);

/* test the rest of the library */
int test_cmdline_lib(void);

#endif /* TEST_CMDLINE_H_ */