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_kvargs.c
diff --git
a/app/test/test_kvargs.c
b/app/test/test_kvargs.c
index
c417ba2
..
b8f5e5c
100644
(file)
--- a/
app/test/test_kvargs.c
+++ b/
app/test/test_kvargs.c
@@
-223,7
+223,8
@@
static int test_invalid_kvargs(void)
return -1;
}
return -1;
}
-int test_kvargs(void)
+static int
+test_kvargs(void)
{
printf("== test valid case ==\n");
if (test_valid_kvargs() < 0)
{
printf("== test valid case ==\n");
if (test_valid_kvargs() < 0)
@@
-233,3
+234,9
@@
int test_kvargs(void)
return -1;
return 0;
}
return -1;
return 0;
}
+
+static struct test_command kvargs_cmd = {
+ .command = "kvargs_autotest",
+ .callback = test_kvargs,
+};
+REGISTER_TEST_COMMAND(kvargs_cmd);