app/test: convert all tests to register system
[dpdk.git] / app / test / test_eal_fs.c
index b28ca6c..8d4edc1 100644 (file)
@@ -196,18 +196,17 @@ error:
        return -1;
 }
 
-int
+static int
 test_eal_fs(void)
 {
        if (test_parse_sysfs_value() < 0)
                return -1;
        return 0;
 }
-#else
-/* baremetal does not have a filesystem */
-int
-test_eal_fs(void)
-{
-       return 0;
-}
+
+static struct test_command eal_fs_cmd = {
+       .command = "eal_fs_autotest",
+       .callback = test_eal_fs,
+};
+REGISTER_TEST_COMMAND(eal_fs_cmd);
 #endif