X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=app%2Ftest%2Ftest_cycles.c;h=d8fa5171be66da28108f0142e50c58a9060da6be;hp=b8d66a09f53d20a11084bce70bf1d59b8e1dfc82;hb=942405f9e2f2c22aa817be374ccfe939a72df2ce;hpb=727909c5923147d0c7c0091a0f791432fa954431 diff --git a/app/test/test_cycles.c b/app/test/test_cycles.c index b8d66a09f5..d8fa5171be 100644 --- a/app/test/test_cycles.c +++ b/app/test/test_cycles.c @@ -52,7 +52,7 @@ * of cycles is correct with regard to the frequency of the timer. */ -int +static int test_cycles(void) { unsigned i; @@ -88,3 +88,9 @@ test_cycles(void) return 0; } + +static struct test_command cycles_cmd = { + .command = "cycles_autotest", + .callback = test_cycles, +}; +REGISTER_TEST_COMMAND(cycles_cmd);