Skip to content

Commit b3466ce

Browse files
committed
Swap tests OK \o/
1 parent ef35dbb commit b3466ce

File tree

71 files changed

+11
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+11
-9
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ debug/
88
# Temporary directory with snapshots taken during test runs
99
tests/snapshots-tmp/
1010

11+
# Unit tests and code coverage
12+
unit-tests/build/
13+
unit-tests/coverage/
14+
unit-tests/coverage.info
15+
1116
# Swap tests
1217
tests_swap/snapshots-tmp/
1318
tests_swap/app-ethereum/

tests_swap/conftest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515

1616
configuration.OPTIONAL.BACKEND_SCOPE = "class"
1717
configuration.OPTIONAL.MAIN_APP_DIR = "./tests_swap/main_app"
18-
configuration.OPTIONAL.SIDELOADED_APPS = {
19-
"ethereum": "Ethereum",
20-
"boilerplate": "Boilerplate"
21-
}
22-
configuration.OPTIONAL.SIDELOADED_APPS_DIR = "lib_binaries/"
2318

19+
configuration.OPTIONAL.SIDELOADED_APPS = {
20+
"ethereum": "Ethereum",
21+
# "boilerplate": "Boilerplate"
22+
}
23+
configuration.OPTIONAL.SIDELOADED_APPS_DIR = "tests_swap/lib_binaries/"
2424

2525
#########################
2626
### CONFIGURATION END ###

tests_swap/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ ragger[tests,speculos] >= 1.9.2
22
protobuf
33
ledger_app_clients.ethereum
44
ledger_app_clients.exchange
5+
GitPython

tests_swap/setup_script.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,3 @@ def run_cmd(cmd: str,
8484
run_cmd("make -j BOLOS_SDK=$"+e["sdk"]+flags, Path(APP_ETHEREUM_DIR))
8585
run_cmd("cp "+e["bin_path"]+"app.elf ../lib_binaries/ethereum_"+e["name"]+".elf", Path(APP_ETHEREUM_DIR))
8686
run_cmd("rm -rf "+APP_ETHEREUM_DIR)
87-
88-
# Copy the boilerplate app to the lib_binaries directory
89-
for e in DEVICES_CONF.values():
90-
run_cmd("cp ../"+e["bin_path"]+"app.elf lib_binaries/boilerplate_"+e["name"]+".elf")

0 commit comments

Comments
 (0)