Skip to content

Commit

Permalink
Merge pull request #14 from blooo-io/ci/zemu-upgrade-tests-nanox
Browse files Browse the repository at this point in the history
fix: zemu upgrade to 0.22.0 fix nano-x tests
  • Loading branch information
n4l5u0r authored Feb 8, 2022
2 parents 965826e + e1dc575 commit cc1f546
Show file tree
Hide file tree
Showing 22 changed files with 60 additions and 61 deletions.
Binary file modified tests/elfs/ethereum_nanox.elf
Binary file not shown.
Binary file modified tests/elfs/quickswap_nanox.elf
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@ledgerhq/hw-app-eth": "^6.9.0",
"@ledgerhq/hw-transport-http": "^4.74.2",
"@ledgerhq/logs": "^5.50.0",
"@zondax/zemu": "0.21.1",
"@zondax/zemu": "0.22.0",
"bignumber.js": "^9.0.0",
"bip32-path": "^0.4.2",
"core-js": "^3.7.0",
Expand All @@ -38,4 +38,4 @@
"flow-bin": "^0.112.0",
"jest": "^26.6.3"
}
}
}
6 changes: 3 additions & 3 deletions tests/src/add_liquidity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const devices = [
steps: 13, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/add_liquidity_eth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const devices = [
steps: 13, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/remove_liquidity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const devices = [
steps: 11, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/remove_liquidity_eth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const devices = [
steps: 13, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const devices = [
steps: 13, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/remove_liquidity_eth_with_permit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const devices = [
steps: 13, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const devices = [
steps: 11, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/remove_liquidity_with_permit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const devices = [
steps: 11, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/swap_eth_for_exact_tokens.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const devices = [
steps: 11, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/swap_exact_eth_for_tokens.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const devices = [
steps: 9, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const devices = [
steps: 9, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/swap_exact_tokens_for_eth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const devices = [
steps: 11, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const devices = [
steps: 12, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/swap_exact_tokens_for_tokens.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const devices = [
steps: 13, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const devices = [
steps: 11, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/swap_tokens_for_exact_eth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const devices = [
steps: 13, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 8, // <= Define the number of steps for this test case and this device
},
];

Expand Down
6 changes: 3 additions & 3 deletions tests/src/swap_tokens_for_exact_tokens.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const devices = [
steps: 9, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
name: "nanox",
label: "Nano X",
steps: 7, // <= Define the number of steps for this test case and this device
},
];

Expand Down
1 change: 0 additions & 1 deletion tests/src/test.fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const transactionUploadDelay = 10000;

const sim_options_generic = {
logging: true,
X11: false,
startDelay: 15000,
startText: 'is ready'
};
Expand Down
14 changes: 7 additions & 7 deletions tests/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -845,9 +845,9 @@
source-map-support "^0.5.16"

"@babel/runtime@^7.15.4":
version "7.17.0"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.0.tgz#b8d142fc0f7664fb3d9b5833fd40dcbab89276c0"
integrity sha512-etcO/ohMNaNA2UBdaXBBSX/3aEzFMRrVfaPv8Ptc0k+cWpWW0QFiGZ2XnVqQZI1Cf734LbPGmqBKWESfW4x/dQ==
version "7.17.2"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.2.tgz#66f68591605e59da47523c631416b18508779941"
integrity sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw==
dependencies:
regenerator-runtime "^0.13.4"

Expand Down Expand Up @@ -1879,10 +1879,10 @@
dependencies:
"@types/yargs-parser" "*"

"@zondax/zemu@0.21.1":
version "0.21.1"
resolved "https://registry.yarnpkg.com/@zondax/zemu/-/zemu-0.21.1.tgz#528861c8c0908f88d9104406519b5468dd440d91"
integrity sha512-lWsh4ih/BMaEQYbsjXfia1sw2ouXu2nCSNV5QfeCVdvMfmFC9s95imA16P5QwKR1ISAZ55IndwPtmuxTT+xIcA==
"@zondax/zemu@0.22.0":
version "0.22.0"
resolved "https://registry.yarnpkg.com/@zondax/zemu/-/zemu-0.22.0.tgz#4512729d4df4aed435242b4889e186df106ea6a0"
integrity sha512-sQ1CCPvwhrYd5Cc0NAfbPV0m9uqx3FvgJkvo+FzJQmEW60D3IfsSoxw4lCKEyMzCEKWQ1JEcsC3pCkqdo9Zp6g==
dependencies:
"@grpc/grpc-js" "^1.3.4"
"@grpc/proto-loader" "^0.6.4"
Expand Down

0 comments on commit cc1f546

Please sign in to comment.