]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_alarm.c
app/test: convert all tests to register system
[dpdk.git] / app / test / test_alarm.c
index d5bea5e56afd16b73fb951d1a12cbacc53df3f4b..5d6f4a27eb81a8bea3b9dfda5b0b5c92f6a8e277 100644 (file)
@@ -199,7 +199,7 @@ test_multi_alarms(void)
        return 0;
 }
 
-int
+static int
 test_alarm(void)
 {
        int count = 0;
@@ -253,3 +253,8 @@ test_alarm(void)
        return 0;
 }
 
+static struct test_command alarm_cmd = {
+       .command = "alarm_autotest",
+       .callback = test_alarm,
+};
+REGISTER_TEST_COMMAND(alarm_cmd);