From 720eaa3abdbdf5c29d0ade0fbfcf5a3b91188d26 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Thu, 25 Mar 2021 18:23:01 +0100 Subject: [PATCH] ci: run monero tests on hardware --- ci/test-hw.yml | 27 +++++++++++++++++++++++ core/tests/run_tests_device_emu_monero.sh | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/ci/test-hw.yml b/ci/test-hw.yml index 4fc7208aa2..b08a13152c 100644 --- a/ci/test-hw.yml +++ b/ci/test-hw.yml @@ -95,6 +95,33 @@ hardware core btconly device test: expire_in: 2 days when: always +hardware core monero test: + stage: test + only: + - schedules # nightly build + - /^release\// + - /^secfix\// + - /^hw\// + tags: + - tpmb + needs: + - core fw regular debug build + variables: + TESTOPTS: --trezor_path webusb + script: + - cd ci/hardware_tests + - set -a + - source hardware.cfg + - set +a + - nix-shell --run "cd ../.. && poetry install" + - nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin" + - nix-shell --arg fullDeps true --run "cd ../../core/tests && ./run_tests_device_emu_monero.sh $TESTOPTS" + timeout: 35m + artifacts: + name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" + expire_in: 2 days + when: always + hardware legacy regular device test: stage: test only: diff --git a/core/tests/run_tests_device_emu_monero.sh b/core/tests/run_tests_device_emu_monero.sh index 90d2da44f3..6afb277fa9 100755 --- a/core/tests/run_tests_device_emu_monero.sh +++ b/core/tests/run_tests_device_emu_monero.sh @@ -53,7 +53,7 @@ fi echo "Running tests" TIME_TESTS_START=$SECONDS if [[ "$OSTYPE" == "linux-gnu" && "$FORCE_DOCKER_USE" != 1 ]]; then - "$TREZOR_MONERO_TESTS_PATH" 2>&1 > "$TREZOR_MONERO_TESTS_LOG" + "$TREZOR_MONERO_TESTS_PATH" $@ 2>&1 > "$TREZOR_MONERO_TESTS_LOG" error=$? elif [[ "$OSTYPE" == "darwin"* || "$FORCE_DOCKER_USE" == 1 ]]; then