git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
app/test: convert all tests to register system
[dpdk.git]
/
app
/
test
/
test_atomic.c
diff --git
a/app/test/test_atomic.c
b/app/test/test_atomic.c
index
141cc22
..
3347413
100644
(file)
--- a/
app/test/test_atomic.c
+++ b/
app/test/test_atomic.c
@@
-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);