X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_cycles.c;h=d8fa5171be66da28108f0142e50c58a9060da6be;hb=1b306359e58cb7b90c7d4130a9e74ab5c340298a;hp=b8d66a09f53d20a11084bce70bf1d59b8e1dfc82;hpb=3031749c2df04a63cdcef186dcce3781e61436e8;p=dpdk.git 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);