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
mbuf: remove rte_ctrlmbuf
[dpdk.git]
/
app
/
test
/
test_red.c
diff --git
a/app/test/test_red.c
b/app/test/test_red.c
index
bb62aba
..
262df72
100644
(file)
--- a/
app/test/test_red.c
+++ b/
app/test/test_red.c
@@
-43,8
+43,6
@@
#include "test.h"
#include "test.h"
-#ifdef RTE_LIBRTE_SCHED
-
#include <rte_red.h>
#ifdef __INTEL_COMPILER
#include <rte_red.h>
#ifdef __INTEL_COMPILER
@@
-1861,7
+1859,8
@@
test_invalid_parameters(void)
return 0;
}
return 0;
}
-int test_red(void)
+static int
+test_red(void)
{
uint32_t num_tests = 0;
uint32_t num_pass = 0;
{
uint32_t num_tests = 0;
uint32_t num_pass = 0;
@@
-1883,13
+1882,8
@@
int test_red(void)
return (ret);
}
return (ret);
}
-#else
-
-int
-test_red(void)
-{
- printf("The SCHED library is not included in this build\n");
- return 0;
-}
-
-#endif
+static struct test_command red_cmd = {
+ .command = "red_autotest",
+ .callback = test_red,
+};
+REGISTER_TEST_COMMAND(red_cmd);