1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-29 09:38:08 +00:00
Commit Graph

267 Commits

Author SHA1 Message Date
Pavol Rusnak
91222b4687
tests/config: fix usb hid logic 2017-05-03 17:35:49 +02:00
Pavol Rusnak
5860207e68
Revert "test_msg_signidentity: ed25519 pubkey starts with 1 not 0"
This reverts commit 30b13dba58.
2017-05-03 17:27:02 +02:00
Pavol Rusnak
4cba191997
fix logic in device tests config 2017-04-25 17:04:59 +02:00
Pavol Rusnak
58faa02263
print info on skipping transports 2017-04-25 16:55:59 +02:00
Pavol Rusnak
0840117033
update pipe_exists function 2017-04-25 16:47:30 +02:00
Pavol Rusnak
4999056678
make device tests work without hid 2017-04-25 16:37:27 +02:00
Pavol Rusnak
9c744a1c3d
fix test_msg_signtx.test_fee_too_high (make fee higher) 2017-04-25 15:50:00 +02:00
Pavol Rusnak
504db8283b
add version and lock_time attributes to sign_tx function 2017-04-19 14:19:26 +02:00
Pavol Rusnak
30b13dba58
test_msg_signidentity: ed25519 pubkey starts with 1 not 0 2017-04-16 22:05:55 +02:00
Jochen Hoenicke
a990743010 Ethereum: More unit tests for signing 2017-01-22 19:13:21 +01:00
Jochen Hoenicke
607893f9ac Ethereum: EIP-155 replay protection
Added chain_id parameter to sign tx (and updated protobuf).
Added a unit test with chain_id for Ropsten testnet.
trezorctl:
 - Fixed compatibility with new ethjsonrpc
 - added chain_id parameter
2017-01-22 19:13:21 +01:00
Pavol Rusnak
08cfe0d8c6
add license headers to unit tests 2017-01-03 19:40:05 +01:00
Jochen Hoenicke
8f424b2299 Segwit: Added another unit test 2017-01-03 15:56:22 +01:00
Jochen Hoenicke
7ce7732c63 Segwit: Added unit test for signing 2017-01-02 21:43:49 +01:00
Pavol Rusnak
71ecf77616
nitpick: unify ckd_public import across the package 2016-12-01 14:16:32 +01:00
Pavol Rusnak
06cedd2150
move device (=TREZOR) tests to tests/device_tests, create tests/unit_tests for unit tests 2016-11-28 16:04:55 +01:00
Pavol Rusnak
ec966a0111
rename txcache files to json 2016-11-28 14:33:24 +01:00
Pavol Rusnak
17435cf174
update to new ApplySettings order 2016-11-22 22:04:23 +01:00
Pavol Rusnak
c12bfc4add
enable debuglink for v2 Emulator 2016-11-14 18:54:02 +01:00
Pavol Rusnak
77bfef3a25
allow running tests without debuglink 2016-11-12 15:06:32 +01:00
Pavol Rusnak
35f789122b
tests: support v2 emulator in tests 2016-11-11 18:57:59 +01:00
Pavol Rusnak
df338c4399
tests: remove obsoleted raspi code 2016-11-11 18:42:21 +01:00
Pavol Rusnak
046ced3f81
rework txapi class to use local cache, add txcache fixtures 2016-11-08 15:07:58 +01:00
Pavol Rusnak
43a224b091
new unit test for zcash testnet 2016-10-26 14:53:00 +02:00
Pavol Rusnak
eff303cecc
fix test_protection_levels 2016-10-25 17:06:11 +02:00
Pavol Rusnak
22faa4cafa
add msg_signtx_zcash unittest 2016-10-21 15:25:24 +02:00
Pavol Rusnak
c6094dc9ad
verify_message now requires coin_name 2016-10-10 11:02:04 +02:00
Jochen Hoenicke
ad5b693ffa Unit Test: PIN protection timeout
Don't expect any minimum timeout on the first PIN entry.
2016-08-30 12:55:18 +02:00
Jochen Hoenicke
195b7e47e1
More unit tests for ethereum signing 2016-08-23 22:00:50 +02:00
Pavol Rusnak
3be88e69ff
add unit tests for ethereum messages 2016-08-16 17:22:30 +02:00
Pavol Rusnak
c972d396ae
fix test_protection_levels 2016-06-30 15:19:44 +02:00
Jochen Hoenicke
d5daf1d2f0
Fixed unit tests (also for Python 3)
Removed old unit tests for non-implemented functions (SimpleSignTx, Ecies).
2016-06-28 01:06:51 +02:00
Pavol Rusnak
3a108ee8a5
fix pylint warnings 2016-05-26 17:20:44 +02:00
Pavol Rusnak
54c8bfd1d4
import print function from future 2016-05-20 22:27:20 +02:00
Pavol Rusnak
021389efe8
more fixes 2016-05-20 17:20:11 +02:00
Pavol Rusnak
52ad4e9f0d
update get_public_key and get_address tests to reflect reality 2016-05-20 16:34:49 +02:00
Pavol Rusnak
61579deff6
update signidentity tests 2016-05-20 15:28:52 +02:00
Pavol Rusnak
de9b10fd90
more python3 stuff 2016-05-20 13:46:51 +02:00
slush0
64fadde3e0
Passes first unit tests (against trezor-emu over transport_pipe).
WIP: Issue with console printing of protobuf messages (probably bug in protobuf for python3 itself).
WIP: Disabled Bridge transport because of json_protobuf incompatibility with python3.
WIP: Broken expectations of returned objects in unit tests
2016-05-20 13:46:51 +02:00
slush0
6ec2ff3eac
Preparation for python3 support (WIP) 2016-05-20 13:46:51 +02:00
Pavol Rusnak
f3449fcbd7
fix spelling of TREZOR 2016-02-10 16:48:13 +01:00
Pavol Rusnak
fc1b12d80d
fix whitespace 2016-01-13 00:17:38 +01:00
Pavol Rusnak
ca45019918
add slip-13 paths to the test 2015-10-20 18:12:39 +02:00
Pavol Rusnak
b2bc509218 added description for pin entering 2015-08-21 15:16:27 +02:00
Pavol Rusnak
a22dbca8fe adapt signidentity test to new ssh signatures 2015-08-03 21:58:04 +02:00
Pavol Rusnak
80c45d9678 fix signidentity test after slip-0013 change
raise fees in high_fees tests
2015-08-03 17:24:46 +02:00
Pavol Rusnak
e272ce4d14 set TX API in tests/common.py 2015-07-22 18:06:58 +02:00
Pavol Rusnak
16c07561b5 don't assign tx_api when not needed 2015-06-03 14:53:53 +02:00
Pavol Rusnak
bf539f0b47 split xprv unit test into two 2015-05-07 21:16:43 +02:00
Pavol Rusnak
fdbdb527dc add test for encrypted xprv 2015-05-07 18:29:38 +02:00
Pavol Rusnak
95817eb5d3 adapt to SLIP-0013 2015-03-17 15:11:28 +01:00
Pavol Rusnak
68ef2d2262 implement SignIdentity/SignedIdentity 2015-02-20 18:50:53 +01:00
Pavol Rusnak
870da7aa17 don't try to change 2 things using apply_settings in unit test 2015-02-15 21:19:07 +01:00
Pavol Rusnak
62aff7a22a adapt tests to reflect reorder change 2015-02-11 19:02:35 +01:00
Pavol Rusnak
11e7f21ac3 nicer image in homescreen test 2015-02-05 14:43:27 +01:00
Pavol Rusnak
e42cfe365f use better image for test 2015-02-04 21:26:17 +01:00
Pavol Rusnak
686b8cc4b8 update protobuf, introduce homescreen 2015-02-04 20:53:22 +01:00
Pavol Rusnak
d83926fb13 add failing test to test_op_return 2015-02-04 20:00:04 +01:00
Pavol Rusnak
85d8fa90c8 update protobuf, enable OP_RETURN 2015-02-04 15:47:44 +01:00
Pavol Rusnak
1daf603135 increase range for bip32 caching test 2015-01-26 19:24:31 +01:00
slush0
018a347aca Added test of DerivationCache 2015-01-26 13:08:29 +01:00
Pavol Rusnak
399deeee67 add tests for multisig tx change confirmation 2014-12-20 23:45:40 +01:00
Pavol Rusnak
a51a530dbc cleanup multisig test 2014-12-20 01:23:01 +01:00
slush0
2b664a6b4d Renamed HDPubkeyType to HDNodePathType 2014-12-15 14:37:19 +01:00
Pavol Rusnak
eea4f8be5d fix ApplySettings test 2014-12-13 19:28:33 +01:00
Pavol Rusnak
bc07b044b0 update pb 2014-12-13 19:09:14 +01:00
Pavol Rusnak
63ee124254 test for ApplySettings.use_passphrase 2014-12-13 19:07:43 +01:00
slush0
74a1e18e4c Fix for new multisig API 2014-12-12 22:31:40 +01:00
slush0
bb88abab1e Reflects changes in multisig API: Pass HDNodeType+address_n instead of pubkeys 2014-12-12 22:19:30 +01:00
Pavol Rusnak
1fde1ecc22 add 15-15-multisig to show address test 2014-12-10 19:53:24 +01:00
Pavol Rusnak
c0d0b191d6 test_msg_getaddress_show test now supports multisig 2014-12-10 18:04:26 +01:00
slush0
58f5644402 Merge branch 'master' of github.com:trezor/python-trezor
Conflicts:
	tests/test_multisig.py
2014-12-10 17:59:29 +01:00
slush0
c7431750a2 Added multisig tests for missing pubkey and for 15of15 2014-12-10 17:51:55 +01:00
Pavol Rusnak
705190e147 add test for GetAddress with show flag on 2014-12-10 15:42:38 +01:00
Pavol Rusnak
610547cf32 add button_wait feature for tests 2014-12-10 15:26:18 +01:00
Pavol Rusnak
2ffdff9816 check partial sigs in multisig test 2014-12-07 15:10:16 +01:00
slush0
5c03c72d91 First multisig unit test 2014-12-04 01:30:41 +01:00
Pavol Rusnak
6a27ce2d5c rewrite sign/verify tests to test long messages 2014-11-12 20:26:04 +01:00
Pavol Rusnak
69d2d2ded3 verify test without address does not make sense 2014-11-12 18:37:34 +01:00
Pavol Rusnak
1c6ed65921 add more tests to test_msg_verifymessage 2014-11-07 01:59:44 +01:00
Pavol Rusnak
f790c95df0 add longer strings to ecies tests 2014-11-04 16:19:32 +01:00
Pavol Rusnak
f9e45d8e94 rework EncryptMessage/DecryptMessage 2014-11-04 02:43:21 +01:00
Pavol Rusnak
399d4e10d7 create test_ecies for testing ECIES 2014-11-02 16:16:22 +01:00
Pavol Rusnak
06214d52b4 fix unittests using client.get_public_node method 2014-10-22 00:26:07 +02:00
Pavol Rusnak
4f621b1da0 fix test_recovery_device in test_protection_levels.py 2014-07-31 00:54:41 +02:00
Pavol Rusnak
9ed0604b65 use HidTransport by default again 2014-07-29 18:57:13 +02:00
Pavol Rusnak
a527456db5 add transport for bridge 2014-07-26 16:40:51 +02:00
Pavol Rusnak
a0d73b25fe change logic of recovery 2014-07-10 18:07:38 +02:00
Pavol Rusnak
2d2e31fa50 refactor pprint (add new inspection fields, but comment them) 2014-06-27 17:04:10 +02:00
Pavol Rusnak
7305a77f3e make test_255_outputs more general and rename to test_lots_of_outputs
new test test_lots_of_inputs
2014-06-18 17:14:04 +02:00
Pavol Rusnak
d46bdf2f6e reenable TestDebugLink.test_layout 2014-06-17 16:02:21 +02:00
Pavol Rusnak
260a4322a6 add ClearSession message with unit test 2014-06-17 15:31:10 +02:00
Pavol Rusnak
a3d22dc56e add tests for EncryptMessage/DecryptMessage 2014-06-16 17:16:15 +02:00
Pavol Rusnak
c38f4346f6 add run-separate.sh script 2014-06-11 19:56:19 +02:00
Pavol Rusnak
f17f7d0569 don't use simplesigntx in tests where signtx can be used 2014-06-09 15:33:54 +02:00
Pavol Rusnak
1038a0a3e6 added test for cipherkeyvalue 2014-06-07 19:48:52 +02:00
Pavol Rusnak
0307307dad fix tests to match reality :) 2014-06-04 17:59:25 +02:00
Pavol Rusnak
c06a45c1a8 disable utf tests for sign/verify message for now 2014-06-02 17:53:41 +02:00
Pavol Rusnak
83c93ba3a0 copy test_spend_coinbase to simplesigntx suite as well 2014-05-28 14:54:06 +02:00
slush0
3077b752d4 test_spend_coinbase 2014-05-28 14:39:09 +02:00