From 5bc1ddc5bf6194b3514ef0c5a4b3e670f4f419f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Tue, 23 Apr 2024 10:27:43 +0200 Subject: [PATCH] README: update README.md to make test available on docker containers --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b02866eb..84c9af46 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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