#define DEFAULT_BURST 32U
#define DEFAULT_OPS 64U
+
#define TEST_ASSERT(cond, msg, ...) do { \
if (!(cond)) { \
printf("TestCase %s() line %d failed: " \
.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); \
}
unsigned int get_num_lcores(void);
+bool get_init_device(void);
+
#endif