app/test: convert all tests to register system
[dpdk.git] / app / test / test_mp_secondary.c
index e739765..7579e20 100644 (file)
@@ -265,16 +265,9 @@ test_mp_secondary(void)
        return run_object_creation_tests();
 }
 
-#else
-
-/* Baremetal version
- * Multiprocess not applicable, so just return 0 always
- */
-int
-test_mp_secondary(void)
-{
-       printf("Multi-process not applicable for baremetal\n");
-       return 0;
-}
-
+static struct test_command multiprocess_cmd = {
+       .command = "multiprocess_autotest",
+       .callback = test_mp_secondary,
+};
+REGISTER_TEST_COMMAND(multiprocess_cmd);
 #endif