app/test: convert all tests to register system
[dpdk.git] / app / test / test_atomic.c
index 141cc22..3347413 100644 (file)
@@ -248,7 +248,7 @@ test_atomic_dec_and_test(__attribute__((unused)) void *arg)
        return 0;
 }
 
-int
+static int
 test_atomic(void)
 {
        rte_atomic16_init(&a16);
@@ -375,3 +375,8 @@ test_atomic(void)
        return 0;
 }
 
+static struct test_command atomic_cmd = {
+       .command = "atomic_autotest",
+       .callback = test_atomic,
+};
+REGISTER_TEST_COMMAND(atomic_cmd);