matejcik
a978435819
tests: update SD card test
2020-03-20 14:03:28 +01:00
Andrew Kozlik
8ee0026637
core: Allow PIN entry even when SD protect is enabled and the card is not present.
2020-03-19 15:04:33 +01:00
Andrew Kozlik
b2dc5813fe
legacy, tests: Check for invalid PIN.
2020-03-17 11:53:48 +01:00
Tomas Susanka
ad25096f90
tests: test reset device also with another strengths
2020-03-13 10:12:50 +00:00
matejcik
5b7d11e4ee
tests: remove explicit timeouts from test suite
2020-03-09 10:31:17 +01:00
Tomas Susanka
89929c7a8c
tests/ui: create report what differs from master
2020-03-04 13:41:32 +01:00
Tomas Susanka
f8de140271
core: add cancel to hold to confirm dialogs
2020-03-02 13:58:41 +00:00
Tomas Susanka
21676a0662
ore/tezos: better wording in delegation cancel
2020-03-02 08:49:34 +00:00
matejcik
7f91bc571c
core: ensure default task restarts after a passphrase workflow ( fixes #883 )
2020-02-28 15:55:40 +01:00
Tomas Susanka
a8af9feebe
core: fix text overflow in some dialogs
2020-02-27 12:43:33 +00:00
Tomas Susanka
744c32991f
core: unify sign/verify functions
...
The UI records are modified because of two changes:
- Added a coin name to the Sign/Verify screen (ETH/Lisk).
- Unified to use mono.
2020-02-27 12:43:33 +00:00
matejcik
6722215c66
tests: update SD-protect test after randomization change
2020-02-24 15:38:28 +01:00
matejcik
61fa00731a
tests: write UI report if tests fail
2020-02-24 15:38:02 +01:00
matejcik
d7b9582386
core/sdcard: add ensure_filesystem option ( fixes #868 )
...
It is possible to call `ensure_sdcard` in a way that requires only SD
card be inserted, but not necessarily formatted.
This is useful for SD-protect and possibly other use-cases where the SD
card is read-only, and "not formatted" is identical to "not containing
the right files".
2020-02-24 13:28:44 +01:00
matejcik
f9097b16e6
tests: make ui-check-missing more resilient for nonstandard exits
2020-02-24 13:28:44 +01:00
Tomas Susanka
703a13eb00
tests/ui: fix ui fixtures
2020-02-21 14:07:33 +00:00
matejcik
8fed67de08
tests: expand on multi-session tests
2020-02-21 14:40:42 +01:00
Tomas Susanka
6c47bf8230
core: store multiple sessions/caches at the same time
2020-02-21 14:40:42 +01:00
Pavol Rusnak
562671401e
Merge pull request #860 from trezor/prusnak/multisig-show-yours-others
...
core: show yours/others in get_address for multisig
2020-02-20 13:49:13 +01:00
matejcik
d88540f2e0
tests: do not error out when fixtures fail to download
2020-02-20 12:51:48 +01:00
matejcik
42c4eb6341
tests: add SD format test fixtures
2020-02-20 12:51:48 +01:00
matejcik
5523c7bbef
tests: add SD card format feature tests
2020-02-20 12:51:48 +01:00
matejcik
5bd8d9b5bb
core/sdcard: make allocating new SD card for emulator fast
2020-02-20 12:51:48 +01:00
matejcik
d98bbebf5e
tests: add UI test for multisig+xpub feature
2020-02-20 12:47:29 +01:00
Tomas Susanka
577daf09fe
tests: introduce --ui-check-missing to test/remove missing tests
2020-02-18 09:33:21 +01:00
matejcik
0d3e1b2479
tests: better way to shut down test suite when connection to device is lost
2020-02-13 16:30:36 +01:00
matejcik
e61b7d28e9
all: do not send state in PassphraseAck (not needed for compatibility)
2020-02-13 15:44:50 +01:00
matejcik
e9003d0742
tests/upgrade_tests: extract and simplify for_all decorator
2020-02-13 15:37:14 +01:00
matejcik
b6fca537c9
tests: remove wipe_code_activate test fixture
2020-02-12 15:45:17 +01:00
matejcik
81a03edf61
python/debuglink: add docstrings, rename functions for clearer usage
2020-02-12 15:38:18 +01:00
matejcik
1bcf856946
tests: simplify change_wipe_code test with PIN queuing
2020-02-12 13:31:31 +01:00
matejcik
ba3d90b994
tests: add wipe code activation test
2020-02-12 13:31:31 +01:00
matejcik
94b85efba1
python/debuglink: make pin sequences configurable
2020-02-12 10:36:42 +01:00
Tomas Susanka
0a13f7a441
core: properly limit passphrase to 50 bytes
2020-02-11 15:39:08 +00:00
matejcik
64838bca2d
tests: fix style
2020-02-10 15:44:13 +01:00
matejcik
41aa818c4c
tests: shut down test suite if no device is available
...
this seems better than erroring out dozens of tests
2020-02-10 15:38:26 +01:00
matejcik
cfe0e34215
tests: ignore trezor.log
2020-02-10 12:36:53 +01:00
Tomas Susanka
15ed5cd19e
core: do not clear cache on ClearSession
2020-02-07 11:41:03 +00:00
Tomas Susanka
da4743c234
tests/ui: regenerate records
...
It seems counterintuitive that we need to regenerate ui fixtures because
of some work on passphrase.
The reason is that we have changed where the state (now session id) is
generated. We have moved it to Features, so it is generated already
after the Initialize message is received. It used to be generated later
- during the PassphraseReq/Ack workflow and in some tests we ask for
randomness between those steps.
2020-02-07 11:41:03 +00:00
Tomas Susanka
5717e647ed
tests/device: remove test_expected_responses
2020-02-07 11:41:03 +00:00
matejcik
49727740bc
tests: remove unnecessary passphrase_on_host
2020-02-07 11:41:03 +00:00
matejcik
9c75e27433
tests: unify Ping replacements
...
for raw calls: just messages.GetAddress()
for library calls: btc.get_address(client, "Testnet", [0])
2020-02-07 11:41:03 +00:00
matejcik
a8cfa8fbed
tests: simplify ClearSession test
2020-02-07 11:41:03 +00:00
matejcik
c9a6ada14f
tests: simplify and extend session_id test
2020-02-07 11:41:02 +00:00
matejcik
ee07b32f52
python: fix debuglink usage of get_passphrase
2020-02-07 11:41:02 +00:00
Tomas Susanka
b96d7cafbb
core: rework cache and fix cardano caching
2020-02-07 11:41:01 +00:00
Tomas Susanka
d5763d9cab
all: implement code review comments
2020-02-07 11:41:01 +00:00
Tomas Susanka
a3f3d4fcdb
remove ping.passphrase/pin
2020-02-07 11:41:00 +00:00
Tomas Susanka
b5d6aaf77c
tests: test PassphraseAck options
2020-02-07 11:41:00 +00:00
Tomas Susanka
041a95f738
legacy: new passphrase redesign draft
2020-02-07 11:40:59 +00:00
Tomas Susanka
569068044e
tests/ui: skip ui test in session tests
2020-02-07 11:40:59 +00:00
Tomas Susanka
be94824c49
tests: test for passphrase_always_on_device
2020-02-07 11:40:59 +00:00
Tomas Susanka
cd09f9ce94
all: modify passphrase source to always on device
2020-02-07 11:40:59 +00:00
Tomas Susanka
90d5cdfd5b
all: rework passphrase
...
The `on_device` field is being moved to PassphraseAck, State messages
are removed. Features newly contain `session_id`.
2020-02-07 11:40:58 +00:00
Tomas Susanka
4baa76dc67
tests/ui: replace many hash.txt files with one large one
2020-01-31 13:05:58 +00:00
Tomas Susanka
73e17987d2
Revert "tests: add 'timeout' to markers"
...
This reverts commit 5364d5e978
.
2020-01-28 14:45:47 +00:00
Tomas Susanka
5364d5e978
tests: add 'timeout' to markers
2020-01-28 14:30:42 +00:00
matejcik
c612b8fd2d
tests: increase timeout for 16-of-16-share test
2020-01-27 20:17:52 +01:00
matejcik
9279049008
tests: register the 'slow' marker
2020-01-27 20:06:18 +01:00
matejcik
066686a20c
tests: raise timeouts for slow tests
2020-01-27 19:41:50 +01:00
matejcik
25910acdd1
tests: make use of new emulator code in emulator tests
2020-01-23 18:45:57 +01:00
matejcik
f707913f32
tests/ui: update fixtures to include missing confirms
2020-01-23 15:45:10 +01:00
Pavol Rusnak
9a884a5dc5
ci/tests: disable test_LongEcho in HIDTest, remove retry
2020-01-23 12:26:43 +00:00
matejcik
15bd35824b
python/cosi: improve API
...
cosi.verify was renamed to verify_combined, because it is pretty much
ed25519.verify, and the new name implies what it does in terms of the
CoSi scheme: verify a signature with already-combined public keys.
cosi.verify_m_of_n signature was simplified by not requiring the `n`
parameter, which is not important for verification. The updated function
was renamed to cosi.verify, because this is the standard CoSi
verification operation: given signature, digest, required number of
signatures, sigmask, and a list of public keys, verify that enough
signatures are indicated and that they sign the digest.
2020-01-20 17:32:58 +01:00
Tomas Susanka
783fa80d19
tests/ui: mkdir for new test
2020-01-15 12:55:37 +00:00
Tomas Susanka
c332876fc0
tests/ui: fix overall result message
2020-01-10 13:25:52 +00:00
Tomas Susanka
a1a56813fe
tests/ui: use the generated reports to create index.html
...
instead of the pytest reports, because it was quite painful
2020-01-10 12:18:15 +00:00
Tomas Susanka
87d032a8dd
tests/ui: regenerate fixtures due to the red square fix
2020-01-10 08:25:12 +00:00
Tomas Susanka
b846a44a8d
tests/ui: relative path to report pages
2020-01-10 08:25:12 +00:00
Tomas Susanka
23b3a59a5d
tests/ui: order tests in summary
2020-01-09 14:37:15 +00:00
Tomas Susanka
b99a6d5f6c
tests/ui: refactor image reading
2020-01-09 14:32:11 +00:00
Tomas Susanka
346e1e3ebc
tests/ui: remove unnecessary setup_client mark
2020-01-09 14:27:08 +00:00
Tomas Susanka
1103a14c48
tests/ui: move reports and add index.html
2020-01-09 14:25:45 +00:00
Tomas Susanka
c604b8f7fa
tests/ui: rename test fixtures folders
2020-01-09 12:03:23 +00:00
Tomas Susanka
b6ec8d67ba
tests/ui: use different test names
2020-01-09 12:03:23 +00:00
Tomas Susanka
96ec85686e
tests/ui: success html file
2020-01-07 14:43:23 +00:00
Tomas Susanka
75c96f6b0a
tests/ui: regenerate fixtures due to reseed before wipe
2020-01-07 12:38:12 +00:00
Tomas Susanka
b4df1172ca
tests/ui: enable ui test for change_wipe_code
...
Because the previous commit fixed it 🎉 .
2020-01-07 12:38:12 +00:00
Tomas Susanka
78bd43d3c4
tests/conftest: reseed before wipe
2020-01-07 12:38:12 +00:00
Tomas Susanka
0c820091a8
tests/ui: reseed each ui test before running it
2020-01-07 12:38:12 +00:00
Tomas Susanka
8796ca96b9
tests/ui: rename test-screen to ui
2020-01-07 09:13:08 +00:00
Tomas Susanka
56257eb6a5
tests/ui: code review fixes
2020-01-06 14:44:30 +00:00
Tomas Susanka
fe690a6b6b
tests/ui: embed images as base64 to diff.html
2020-01-03 15:07:46 +00:00
Tomas Susanka
ce00fa667a
tests/ui: download recorded fixtures from server
2020-01-03 15:07:46 +00:00
Tomas Susanka
edcd4f9ccc
tests/ui: copy actual dir as recorded if the test passed
...
because it is the same thing then
2020-01-03 14:28:27 +00:00
Tomas Susanka
2eda139ac4
tests/ui: move files to ui_tests dir
2020-01-03 14:28:27 +00:00
Tomas Susanka
e709f76b14
tests: move fixtures to fixtures directory
2020-01-03 14:28:27 +00:00
Tomas Susanka
15069f3e25
tests/ui: introduce diff html
2020-01-03 14:28:27 +00:00
Tomas Susanka
2ceeacb5db
tests/ui: rename also tested fixtures
2020-01-03 14:28:27 +00:00
Tomas Susanka
3a035a0ef8
tests: save screens directly to ui_tests; introduce recorded/actual dir
2020-01-03 14:28:27 +00:00
Tomas Susanka
51ef963738
tests: introduce UI tests for core
2020-01-03 14:28:27 +00:00
Tomas Susanka
a28f29708f
ci: add junit for a nice tests overview
2020-01-03 12:44:12 +00:00
Pavol Rusnak
e5bdf0d51b
Merge pull request #742 from trezor/language
...
common: change language field to IETF BCP 47 language tag
2019-12-12 18:07:54 +01:00
Pavol Rusnak
7646b97dca
common: divisibility -> decimals
2019-12-09 17:43:47 +01:00
Pavol Rusnak
bb8d809a6d
common: change language field to IETF BCP 47 language tag
2019-12-08 11:27:10 +01:00
Tomas Susanka
1b88840f53
docs: move docs to root
2019-12-06 12:24:20 +00:00
Tomas Susanka
61430d800e
core/stellar: add screen for timebounds
2019-12-05 14:31:28 +00:00
Pavol Rusnak
3d50bb5ed8
common: add Peercoin, regenerate coins
2019-12-05 09:43:32 +00:00
Andrew Kozlik
89a3ec1696
tests: Add device tests for wipe code protection.
2019-11-25 17:08:19 +01:00
matejcik
34913a328a
all: disallow most RecoveryDevice fields in dry-run ( fixes #666 )
2019-11-20 12:27:57 +01:00