app/test: convert all tests to register system
[dpdk.git] / app / test / test_interrupts.c
index 322c218..61fdc56 100644 (file)
@@ -35,8 +35,6 @@
 #include <stdint.h>
 #include <unistd.h>
 
-#include <cmdline_parse.h>
-
 #include <rte_common.h>
 #include <rte_cycles.h>
 #include <rte_interrupts.h>
@@ -397,7 +395,7 @@ test_interrupt_full_path_check(enum test_interrupt_handle_type intr_type)
 /**
  * Main function of testing interrupt.
  */
-int
+static int
 test_interrupt(void)
 {
        int ret = -1;
@@ -550,3 +548,8 @@ out:
        return ret;
 }
 
+static struct test_command interrupt_cmd = {
+       .command = "interrupt_autotest",
+       .callback = test_interrupt,
+};
+REGISTER_TEST_COMMAND(interrupt_cmd);