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
test/rib: speed up rib autotests
[dpdk.git]
/
app
/
test-bbdev
/
main.h
diff --git
a/app/test-bbdev/main.h
b/app/test-bbdev/main.h
index
2bbe1b8
..
23b4d58
100644
(file)
--- a/
app/test-bbdev/main.h
+++ b/
app/test-bbdev/main.h
@@
-20,6
+20,7
@@
#define DEFAULT_BURST 32U
#define DEFAULT_OPS 64U
#define DEFAULT_BURST 32U
#define DEFAULT_OPS 64U
+
#define TEST_ASSERT(cond, msg, ...) do { \
if (!(cond)) { \
printf("TestCase %s() line %d failed: " \
#define TEST_ASSERT(cond, msg, ...) do { \
if (!(cond)) { \
printf("TestCase %s() line %d failed: " \
@@
-103,7
+104,8
@@
void add_test_command(struct test_command *t);
.command = RTE_STR(name), \
.callback = test_func_##name, \
}; \
.command = RTE_STR(name), \
.callback = test_func_##name, \
}; \
- RTE_INIT(test_register_##name) \
+ static void __attribute__((constructor, used)) \
+ test_register_##name(void) \
{ \
add_test_command(&test_struct_##name); \
}
{ \
add_test_command(&test_struct_##name); \
}
@@
-116,4
+118,6
@@
unsigned int get_burst_sz(void);
unsigned int get_num_lcores(void);
unsigned int get_num_lcores(void);
+bool get_init_device(void);
+
#endif
#endif