Skip to content
Commit 4ee0b6b5 authored by jing wang's avatar jing wang Committed by Anas Nashif
Browse files

tests: provide MACRO to easily wrap test function to shell command



usage is as below:

TC_CMD_DEFINE(test_func_1)
TC_CMD_DEFINE(test_func_2)

static const struct shell_cmd commands[] = {
		TC_CMD_ITEM(test_func_1),
		TC_CMD_ITEM(test_func_2),
		{ NULL, NULL }
};
SHELL_REGISTER("runtest", commands);

Change-Id: I4eab67113954f373d5a2cbfaa729be180fd31444
Signed-off-by: default avatarjing wang <jing.j.wang@intel.com>
parent c1485fe2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment