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/eventdev: move tests to the driver specific list
[dpdk.git]
/
app
/
test
/
test.c
diff --git
a/app/test/test.c
b/app/test/test.c
index
351c7f2
..
ea1e98f
100644
(file)
--- a/
app/test/test.c
+++ b/
app/test/test.c
@@
-30,13
+30,15
@@
extern cmdline_parse_ctx_t main_ctx[];
#endif
#include "test.h"
#endif
#include "test.h"
+#ifdef RTE_LIBRTE_PDUMP
#include "test_pdump.h"
#include "test_pdump.h"
+#endif
#define RTE_LOGTYPE_APP RTE_LOGTYPE_USER1
const char *prgname; /* to be set to argv[0] */
#define RTE_LOGTYPE_APP RTE_LOGTYPE_USER1
const char *prgname; /* to be set to argv[0] */
-static const char *recursive_call; /* used in linux
app
for MP and other tests */
+static const char *recursive_call; /* used in linux for MP and other tests */
static int
no_action(void){ return 0; }
static int
no_action(void){ return 0; }
@@
-50,7
+52,9
@@
do_recursive_call(void)
int (*action_fn)(void);
} actions[] = {
{ "run_secondary_instances", test_mp_secondary },
int (*action_fn)(void);
} actions[] = {
{ "run_secondary_instances", test_mp_secondary },
+#ifdef RTE_LIBRTE_PDUMP
{ "run_pdump_server_tests", test_pdump },
{ "run_pdump_server_tests", test_pdump },
+#endif
{ "test_missing_c_flag", no_action },
{ "test_master_lcore_flag", no_action },
{ "test_invalid_n_flag", no_action },
{ "test_missing_c_flag", no_action },
{ "test_master_lcore_flag", no_action },
{ "test_invalid_n_flag", no_action },
@@
-63,6
+67,7
@@
do_recursive_call(void)
{ "test_memory_flags", no_action },
{ "test_file_prefix", no_action },
{ "test_no_huge_flag", no_action },
{ "test_memory_flags", no_action },
{ "test_file_prefix", no_action },
{ "test_no_huge_flag", no_action },
+ { "timer_secondary_spawn_wait", test_timer_secondary },
};
if (recursive_call == NULL)
};
if (recursive_call == NULL)
@@
-126,7
+131,10
@@
main(int argc, char **argv)
}
#ifdef RTE_LIBRTE_TIMER
}
#ifdef RTE_LIBRTE_TIMER
- rte_timer_subsystem_init();
+ if (rte_timer_subsystem_init() < 0) {
+ ret = -1;
+ goto out;
+ }
#endif
if (commands_init() < 0) {
#endif
if (commands_init() < 0) {
@@
-179,6
+187,9
@@
main(int argc, char **argv)
ret = 0;
out:
ret = 0;
out:
+#ifdef RTE_LIBRTE_TIMER
+ rte_timer_subsystem_finalize();
+#endif
rte_eal_cleanup();
return ret;
}
rte_eal_cleanup();
return ret;
}