MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / utest_help

Function utest_help

components/utilities/utest/utest.c:194–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194static int utest_help(void)
195{
196 rt_kprintf("\n");
197 rt_kprintf("Command: utest_run\n");
198 rt_kprintf(" info: Execute test cases.\n");
199 rt_kprintf(" format: utest_run [-thread or -help] [testcase name] [loop num]\n");
200 rt_kprintf(" usage:\n");
201 rt_kprintf(" 1. utest_run\n");
202 rt_kprintf(" Do not specify a test case name. Run all test cases.\n");
203 rt_kprintf(" 2. utest_run -thread\n");
204 rt_kprintf(" Do not specify a test case name. Run all test cases in threaded mode.\n");
205 rt_kprintf(" 3. utest_run testcaseA\n");
206 rt_kprintf(" Run 'testcaseA'.\n");
207 rt_kprintf(" 4. utest_run testcaseA 10\n");
208 rt_kprintf(" Run 'testcaseA' ten times.\n");
209 rt_kprintf(" 5. utest_run -thread testcaseA\n");
210 rt_kprintf(" Run 'testcaseA' in threaded mode.\n");
211 rt_kprintf(" 6. utest_run -thread testcaseA 10\n");
212 rt_kprintf(" Run 'testcaseA' ten times in threaded mode.\n");
213 rt_kprintf(" 7. utest_run test*\n");
214 rt_kprintf(" support '*' wildcard. Run all test cases starting with 'test'.\n");
215 rt_kprintf(" 8. utest_run -help\n");
216 rt_kprintf(" Show utest help information\n");
217 rt_kprintf("\n");
218 return 0;
219}
220
221static void utest_do_run(const char *utest_name)
222{

Callers 1

utest_testcase_runFunction · 0.85

Calls 1

rt_kprintfFunction · 0.85

Tested by

no test coverage detected