#include "test.h"
#include "test_cmdline.h"
-int
+static int
test_cmdline(void)
{
-#ifdef CONFIG_RTE_LIBRTE_CMDLINE
printf("Testind parsing ethernet addresses...\n");
if (test_parse_etheraddr_valid() < 0)
return -1;
printf("Testing library functions...\n");
if (test_cmdline_lib() < 0)
return -1;
-#else
- printf("The cmdline library is not included in this build\n");
-#endif
return 0;
}
+REGISTER_TEST_COMMAND(cmdline_autotest, test_cmdline);