1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-17 19:00:58 +00:00

fix tests.c when USE_GRAPHENE=0

This commit is contained in:
Pavol Rusnak 2016-10-24 12:44:25 +02:00
parent 420c71992a
commit ce9022ad5d
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -423,6 +423,8 @@ START_TEST(test_base58)
} }
END_TEST END_TEST
#if USE_GRAPHENE
// Graphene Base85CheckEncoding // Graphene Base85CheckEncoding
START_TEST(test_base58gph) START_TEST(test_base58gph)
{ {
@ -455,6 +457,8 @@ START_TEST(test_base58gph)
} }
END_TEST END_TEST
#endif
START_TEST(test_bignum_divmod) START_TEST(test_bignum_divmod)
{ {
uint32_t r; uint32_t r;
@ -2712,9 +2716,11 @@ Suite *test_suite(void)
tcase_add_test(tc, test_base58); tcase_add_test(tc, test_base58);
suite_add_tcase(s, tc); suite_add_tcase(s, tc);
#if USE_GRAPHENE
tc = tcase_create("base58gph"); tc = tcase_create("base58gph");
tcase_add_test(tc, test_base58gph); tcase_add_test(tc, test_base58gph);
suite_add_tcase(s, tc); suite_add_tcase(s, tc);
#endif
tc = tcase_create("bignum_divmod"); tc = tcase_create("bignum_divmod");
tcase_add_test(tc, test_bignum_divmod); tcase_add_test(tc, test_bignum_divmod);