Skip to content

Commit

Permalink
README: update README.md to make test available on docker containers
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Apr 23, 2024
1 parent 316208b commit 5bc1ddc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ You can replace `NANOS` with `NANOSP`, `NANOX`, `STAX` for the other devices in
### Testing
To test the application you need to enable python virtual environment and some dependencies. On any operating system, create a python virtual environment and activate it.
```
$ sudo apt-get update && sudo apt-get install -y qemu-user-static tesseract-ocr libtesseract-dev python3-pip libgmp-dev libsodium-dev git
$ apt-get update && apt-get install -y qemu-user-static tesseract-ocr libtesseract-dev python3-pip python3.10-venv libgmp-dev libsodium-dev git
$ python3 -m venv env
$ source env/bin/activate
```
Expand All @@ -165,6 +165,13 @@ These tests are run on Ledger emulator called speculos which emulates the actual
```
Note the `-s` flag which is required when running interactive tests with pytest. You can also choose `ledgerwallet` backend to run tests on device.

#### Using docker

These steps can be perfomed in an ubuntu container
```
$ docker pull ubuntu:latest
$ docker run --rm -v "$(pwd):/app" -w /app -ti ubuntu bash
```

### Installing the apps onto your Ledger device without Ledger Live

Expand Down

0 comments on commit 5bc1ddc

Please sign in to comment.