diff options
-rw-r--r-- | vppinfra/vppinfra/test_elf.c | 7 | ||||
-rw-r--r-- | vppinfra/vppinfra/test_random.c | 4 | ||||
-rw-r--r-- | vppinfra/vppinfra/test_slist.c | 4 |
3 files changed, 10 insertions, 5 deletions
diff --git a/vppinfra/vppinfra/test_elf.c b/vppinfra/vppinfra/test_elf.c index d3145b635da..914513abf90 100644 --- a/vppinfra/vppinfra/test_elf.c +++ b/vppinfra/vppinfra/test_elf.c @@ -166,8 +166,11 @@ int main (int argc, char * argv[]) } } - if (! tm->input_file) - clib_error ("no input file"); + if (!tm->input_file) + { + clib_warning("No input file! Using test_bihash_template"); + tm->input_file = "test_bihash_template"; + } error = elf_read_file (em, tm->input_file); if (error) diff --git a/vppinfra/vppinfra/test_random.c b/vppinfra/vppinfra/test_random.c index f54e0c1e8c7..9cf07264449 100644 --- a/vppinfra/vppinfra/test_random.c +++ b/vppinfra/vppinfra/test_random.c @@ -54,7 +54,7 @@ int test_random_main (unformat_input_t * input) uword print; u32 seed; u32 *seedp = &seed; - + /* first, check known sequence from Numerical Recipes in C, 2nd ed. page 284 */ seed = known_random_sequence[0]; @@ -127,6 +127,8 @@ int main (int argc, char * argv[]) unformat_input_t i; int ret; + clib_mem_init (0, 3ULL<<30); + unformat_init_command_line (&i, argv); ret = test_random_main (&i); unformat_free (&i); diff --git a/vppinfra/vppinfra/test_slist.c b/vppinfra/vppinfra/test_slist.c index 76ba5dc59aa..7a021532530 100644 --- a/vppinfra/vppinfra/test_slist.c +++ b/vppinfra/vppinfra/test_slist.c @@ -158,7 +158,7 @@ int test_slist_main (unformat_input_t *input) u32 tmp; tm->seed = 0xbabeb00b; - tm->iter = 10000000; + tm->iter = 100000; tm->verbose = 1; tm->branching_factor = 1.0 / 5.0; @@ -200,7 +200,7 @@ int main (int argc, char * argv[]) unformat_input_t i; int ret; - clib_mem_init (0, (u64)8<<30); + clib_mem_init (0, (u64)4<<30); unformat_init_command_line (&i, argv); ret = test_slist_main (&i); |