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_string_fns.c
diff --git
a/app/test/test_string_fns.c
b/app/test/test_string_fns.c
index
223797c
..
29bfe5b
100644
(file)
--- a/
app/test/test_string_fns.c
+++ b/
app/test/test_string_fns.c
@@
-291,7
+291,7
@@
test_rte_strsplit(void)
return 0;
}
return 0;
}
-int
+
static
int
test_string_fns(void)
{
if (test_rte_snprintf() < 0 ||
test_string_fns(void)
{
if (test_rte_snprintf() < 0 ||
@@
-299,3
+299,9
@@
test_string_fns(void)
return -1;
return 0;
}
return -1;
return 0;
}
+
+static struct test_command string_cmd = {
+ .command = "string_autotest",
+ .callback = test_string_fns,
+};
+REGISTER_TEST_COMMAND(string_cmd);