tests/jwt_builder: Increase test time outs more
Signed-off-by: Ben Collins <bcollins@swissdisk.com>
This commit is contained in:
parent
e58c61a416
commit
f31983dfef
2 changed files with 8 additions and 6 deletions
|
@ -304,7 +304,8 @@ if (CHECK_FOUND)
|
|||
endforeach()
|
||||
|
||||
if (BATS_CMD)
|
||||
add_test(NAME jwt_cli COMMAND /bin/bash -c "export SRCDIR=\"${CMAKE_SOURCE_DIR}\"; \"${CMAKE_SOURCE_DIR}\"/tests/jwt-cli.bats")
|
||||
add_test(NAME jwt_cli COMMAND /bin/bash -c
|
||||
"export SRCDIR=\"${CMAKE_SOURCE_DIR}\"; \"${CMAKE_SOURCE_DIR}\"/tests/jwt-cli.bats")
|
||||
endif()
|
||||
|
||||
add_custom_target(check
|
||||
|
|
|
@ -863,6 +863,7 @@ static Suite *libjwt_suite(const char *title)
|
|||
|
||||
tc_core = tcase_create("New");
|
||||
tcase_add_loop_test(tc_core, new, 0, i);
|
||||
tcase_set_timeout(tc_core, 60);
|
||||
suite_add_tcase(s, tc_core);
|
||||
|
||||
tc_core = tcase_create("Gen");
|
||||
|
@ -872,21 +873,21 @@ static Suite *libjwt_suite(const char *title)
|
|||
tcase_add_loop_test(tc_core, gen_es384_pub, 0, i);
|
||||
tcase_add_loop_test(tc_core, set_alg, 0, i);
|
||||
tcase_add_loop_test(tc_core, gen_ec_stress, 0, i);
|
||||
tcase_set_timeout(tc_core, 30);
|
||||
tcase_set_timeout(tc_core, 60);
|
||||
suite_add_tcase(s, tc_core);
|
||||
|
||||
tc_core = tcase_create("Error Handling");
|
||||
tcase_add_loop_test(tc_core, null_handling, 0, i);
|
||||
tcase_add_loop_test(tc_core, just_fail_wcb, 0, i);
|
||||
tcase_add_loop_test(tc_core, sign_es256_bad_sig, 0, i);
|
||||
tcase_set_timeout(tc_core, 30);
|
||||
tcase_set_timeout(tc_core, 60);
|
||||
suite_add_tcase(s, tc_core);
|
||||
|
||||
tc_core = tcase_create("HS256 Key Gen");
|
||||
tcase_add_loop_test(tc_core, gen_hs256, 0, i);
|
||||
tcase_add_loop_test(tc_core, gen_hs256_bits, 0, i);
|
||||
tcase_add_loop_test(tc_core, gen_hs256_wcb, 0, i);
|
||||
tcase_set_timeout(tc_core, 30);
|
||||
tcase_set_timeout(tc_core, 60);
|
||||
suite_add_tcase(s, tc_core);
|
||||
|
||||
tc_core = tcase_create("Claims SetGetDel");
|
||||
|
@ -894,14 +895,14 @@ static Suite *libjwt_suite(const char *title)
|
|||
tcase_add_loop_test(tc_core, claim_int_setgetdel, 0, i);
|
||||
tcase_add_loop_test(tc_core, claim_bool_setgetdel, 0, i);
|
||||
tcase_add_loop_test(tc_core, claim_json_setgetdel, 0, i);
|
||||
tcase_set_timeout(tc_core, 30);
|
||||
tcase_set_timeout(tc_core, 60);
|
||||
suite_add_tcase(s, tc_core);
|
||||
|
||||
tc_core = tcase_create("Header SetGetDel");
|
||||
/* All of the code paths for str/int/bool/json have been covered. We
|
||||
* just run this to ensure set/get/del works on headers */
|
||||
tcase_add_loop_test(tc_core, header_str_setgetdel, 0, i);
|
||||
tcase_set_timeout(tc_core, 30);
|
||||
tcase_set_timeout(tc_core, 60);
|
||||
suite_add_tcase(s, tc_core);
|
||||
|
||||
return s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue