Skip to content

Commit

Permalink
test: update functional tests for nanosp
Browse files Browse the repository at this point in the history
  • Loading branch information
nsonanh committed Sep 7, 2023
1 parent 2601a75 commit de7a4fb
Show file tree
Hide file tree
Showing 127 changed files with 4 additions and 3 deletions.
Binary file modified tests/functional/snapshots/nanosp/test_app_mainmenu/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/functional/snapshots/nanosp/test_app_mainmenu/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified tests/functional/snapshots/nanosp/test_sign_tx_refused/00002.png
Binary file modified tests/functional/snapshots/nanosp/test_sign_tx_refused/00003.png
Binary file modified tests/functional/snapshots/nanosp/test_sign_tx_refused/00004.png
Binary file modified tests/functional/snapshots/nanosp/test_sign_tx_refused/00005.png
Binary file modified tests/functional/snapshots/nanosp/test_sign_tx_refused/00006.png
Binary file modified tests/functional/snapshots/nanosp/test_sign_tx_refused/00007.png
Binary file modified tests/functional/snapshots/nanosp/test_sign_tx_refused/00008.png
Diff not rendered.
Diff not rendered.
5 changes: 3 additions & 2 deletions tests/functional/test_pubkey_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
# Proposed DHP derivation paths for tests ###
DHEALTH_PATH = "m/44'/10111'/0'/0'/0'"

SPECULOS_EXPECTED_PUBLIC_KEY = "73f0bf90d39d1d0a3ec03740eec95c12"\
"7a82a20bf07f6840462125a94a42df1e"
SPECULOS_EXPECTED_PUBLIC_KEY = "e521d51965c3d432af417e19c5f2a967"\
"c73f3410d81b85b474ed2e63fbaa00b6"


def check_get_public_key_resp(backend, public_key):
if isinstance(backend, SpeculosBackend):
# Check against nominal Speculos seed expected results
print(public_key.hex())
assert public_key.hex() == SPECULOS_EXPECTED_PUBLIC_KEY


Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_version_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Taken from the Makefile, to update every time the Makefile version is bumped
MAJOR = 1
MINOR = 0
PATCH = 8
PATCH = 0


# In this test we check the behavior of the device when asked to provide the app version
Expand Down

0 comments on commit de7a4fb

Please sign in to comment.