1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 09:28:13 +00:00

Merge pull request #40 from romanz/travis

Add Travis CI for unit test suite
This commit is contained in:
Pavol Rusnak 2015-07-29 21:02:38 +02:00
commit 79738f4251
3 changed files with 12 additions and 1 deletions

9
.travis.yml Normal file
View File

@ -0,0 +1,9 @@
language: c
install:
- sudo apt-get install check
script:
- make tests
- ./tests

View File

@ -1,6 +1,8 @@
trezor-crypto trezor-crypto
============= =============
[![Build Status](https://travis-ci.org/trezor/trezor-crypto.svg?branch=master)](https://travis-ci.org/trezor/trezor-crypto)
Heavily optimized cryptography algorithms for embedded devices. Heavily optimized cryptography algorithms for embedded devices.
These include: These include:

View File

@ -152,7 +152,7 @@ START_TEST(test_base58)
memcpy(rawn, fromhex(*raw), len); memcpy(rawn, fromhex(*raw), len);
r = base58_encode_check(rawn, len, strn, sizeof(strn)); r = base58_encode_check(rawn, len, strn, sizeof(strn));
ck_assert_int_eq(r, strlen(*str) + 1); ck_assert_int_eq((size_t)r, strlen(*str) + 1);
ck_assert_str_eq(strn, *str); ck_assert_str_eq(strn, *str);
r = base58_decode_check(strn, rawn, len); r = base58_decode_check(strn, rawn, len);