1*a9de470cSBruce Richardson /* SPDX-License-Identifier: BSD-3-Clause 2*a9de470cSBruce Richardson * Copyright(c) 2010-2014 Intel Corporation 3*a9de470cSBruce Richardson */ 4*a9de470cSBruce Richardson 5*a9de470cSBruce Richardson #ifndef TEST_CMDLINE_H_ 6*a9de470cSBruce Richardson #define TEST_CMDLINE_H_ 7*a9de470cSBruce Richardson 8*a9de470cSBruce Richardson #define CMDLINE_TEST_BUFSIZE 64 9*a9de470cSBruce Richardson 10*a9de470cSBruce Richardson /* cmdline_parse_num tests */ 11*a9de470cSBruce Richardson int test_parse_num_valid(void); 12*a9de470cSBruce Richardson int test_parse_num_invalid_data(void); 13*a9de470cSBruce Richardson int test_parse_num_invalid_param(void); 14*a9de470cSBruce Richardson 15*a9de470cSBruce Richardson /* cmdline_parse_etheraddr tests */ 16*a9de470cSBruce Richardson int test_parse_etheraddr_valid(void); 17*a9de470cSBruce Richardson int test_parse_etheraddr_invalid_data(void); 18*a9de470cSBruce Richardson int test_parse_etheraddr_invalid_param(void); 19*a9de470cSBruce Richardson 20*a9de470cSBruce Richardson /* cmdline_parse_portlist tests */ 21*a9de470cSBruce Richardson int test_parse_portlist_valid(void); 22*a9de470cSBruce Richardson int test_parse_portlist_invalid_data(void); 23*a9de470cSBruce Richardson int test_parse_portlist_invalid_param(void); 24*a9de470cSBruce Richardson 25*a9de470cSBruce Richardson /* cmdline_parse_ipaddr tests */ 26*a9de470cSBruce Richardson int test_parse_ipaddr_valid(void); 27*a9de470cSBruce Richardson int test_parse_ipaddr_invalid_data(void); 28*a9de470cSBruce Richardson int test_parse_ipaddr_invalid_param(void); 29*a9de470cSBruce Richardson 30*a9de470cSBruce Richardson /* cmdline_parse_string tests */ 31*a9de470cSBruce Richardson int test_parse_string_valid(void); 32*a9de470cSBruce Richardson int test_parse_string_invalid_data(void); 33*a9de470cSBruce Richardson int test_parse_string_invalid_param(void); 34*a9de470cSBruce Richardson 35*a9de470cSBruce Richardson /* cmdline_cirbuf tests */ 36*a9de470cSBruce Richardson int test_cirbuf_invalid_param(void); 37*a9de470cSBruce Richardson int test_cirbuf_char(void); 38*a9de470cSBruce Richardson int test_cirbuf_string(void); 39*a9de470cSBruce Richardson int test_cirbuf_align(void); 40*a9de470cSBruce Richardson 41*a9de470cSBruce Richardson /* test the rest of the library */ 42*a9de470cSBruce Richardson int test_cmdline_lib(void); 43*a9de470cSBruce Richardson 44*a9de470cSBruce Richardson #endif /* TEST_CMDLINE_H_ */ 45