1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
8 #include "test_cmdline.h"
13 printf("Testind parsing ethernet addresses...\n");
14 if (test_parse_etheraddr_valid() < 0)
16 if (test_parse_etheraddr_invalid_data() < 0)
18 if (test_parse_etheraddr_invalid_param() < 0)
20 printf("Testind parsing port lists...\n");
21 if (test_parse_portlist_valid() < 0)
23 if (test_parse_portlist_invalid_data() < 0)
25 if (test_parse_portlist_invalid_param() < 0)
27 printf("Testind parsing numbers...\n");
28 if (test_parse_num_valid() < 0)
30 if (test_parse_num_invalid_data() < 0)
32 if (test_parse_num_invalid_param() < 0)
34 printf("Testing parsing IP addresses...\n");
35 if (test_parse_ipaddr_valid() < 0)
37 if (test_parse_ipaddr_invalid_data() < 0)
39 if (test_parse_ipaddr_invalid_param() < 0)
41 printf("Testing parsing strings...\n");
42 if (test_parse_string_valid() < 0)
44 if (test_parse_string_invalid_data() < 0)
46 if (test_parse_string_invalid_param() < 0)
48 printf("Testing circular buffer...\n");
49 if (test_cirbuf_char() < 0)
51 if (test_cirbuf_string() < 0)
53 if (test_cirbuf_align() < 0)
55 if (test_cirbuf_invalid_param() < 0)
57 printf("Testing library functions...\n");
58 if (test_cmdline_lib() < 0)
63 REGISTER_TEST_COMMAND(cmdline_autotest, test_cmdline);