app/test: rework command registration
[dpdk.git] / app / test / test_eal_fs.c
index cd41b3e..7897812 100644 (file)
@@ -38,7 +38,7 @@
 #include <errno.h>
 
 /* eal_filesystem.h is not a public header file, so use relative path */
-#include "../../lib/librte_eal/linuxapp/eal/include/eal_filesystem.h"
+#include "../../lib/librte_eal/common/eal_filesystem.h"
 
 static int
 test_parse_sysfs_value(void)
@@ -203,8 +203,4 @@ 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);
+REGISTER_TEST_COMMAND(eal_fs_autotest, test_eal_fs);