mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-08 05:32:39 +00:00
test(core): update monero tests binary
[no changelog]
This commit is contained in:
parent
d5078ebde5
commit
bb5972b7e2
2
.github/workflows/core-hw.yml
vendored
2
.github/workflows/core-hw.yml
vendored
@ -93,7 +93,7 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
# log serial console to file; sleep is used because tio needs stdin that is not /dev/null
|
# log serial console to file; sleep is used because tio needs stdin that is not /dev/null
|
||||||
nix-shell --arg hardwareTest true --run "sleep 8h | tio --no-autoconnect /dev/ttyTREZOR &> trezor.log" &
|
nix-shell --arg hardwareTest true --run "sleep 8h | tio --no-autoconnect /dev/ttyTREZOR &> trezor.log" &
|
||||||
nix-shell --arg fullDeps true --run "./core/tests/run_tests_device_emu_monero.sh $TESTOPTS"
|
nix-shell --arg fullDeps true --run "./core/tests/run_tests_device_emu_monero.sh --trezor-path webusb:"
|
||||||
- run: tail -n50 trezor.log || true
|
- run: tail -n50 trezor.log || true
|
||||||
if: failure()
|
if: failure()
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
|
@ -23,8 +23,8 @@ fi
|
|||||||
|
|
||||||
# When updating URL and sha256sum also update the URL in ci/shell.nix.
|
# When updating URL and sha256sum also update the URL in ci/shell.nix.
|
||||||
error=1
|
error=1
|
||||||
: "${TREZOR_MONERO_TESTS_URL:=https://github.com/ph4r05/monero/releases/download/v0.18.1.1-dev-tests-u18.04-02/trezor_tests}"
|
: "${TREZOR_MONERO_TESTS_URL:=https://github.com/ph4r05/monero/releases/download/v0.18.3.1-dev-tests-u18.04-01/trezor_tests}"
|
||||||
: "${TREZOR_MONERO_TESTS_SHA256SUM:=81424cfc3965abdc24de573274bf631337b52fd25cefc895513214c613fe05c9}"
|
: "${TREZOR_MONERO_TESTS_SHA256SUM:=d8938679b69f53132ddacea1de4b38b225b06b37b3309aa17911cfbe09b70b4a}"
|
||||||
: "${TREZOR_MONERO_TESTS_PATH:=$CORE_DIR/tests/trezor_monero_tests}"
|
: "${TREZOR_MONERO_TESTS_PATH:=$CORE_DIR/tests/trezor_monero_tests}"
|
||||||
: "${TREZOR_MONERO_TESTS_LOG:=$CORE_DIR/tests/trezor_monero_tests.log}"
|
: "${TREZOR_MONERO_TESTS_LOG:=$CORE_DIR/tests/trezor_monero_tests.log}"
|
||||||
: "${TREZOR_MONERO_TESTS_CHAIN:=$CORE_DIR/tests/trezor_monero_tests.chain}"
|
: "${TREZOR_MONERO_TESTS_CHAIN:=$CORE_DIR/tests/trezor_monero_tests.chain}"
|
||||||
|
@ -39,13 +39,16 @@ let
|
|||||||
sha256 = "02s3qkb6kz3ndyx7rfndjbvp4vlwiqc42fxypn3g6jnc0v5jyz95";
|
sha256 = "02s3qkb6kz3ndyx7rfndjbvp4vlwiqc42fxypn3g6jnc0v5jyz95";
|
||||||
}) { };
|
}) { };
|
||||||
moneroTests = nixpkgs.fetchurl {
|
moneroTests = nixpkgs.fetchurl {
|
||||||
url = "https://github.com/ph4r05/monero/releases/download/v0.18.1.1-dev-tests-u18.04-02/trezor_tests";
|
url = "https://github.com/ph4r05/monero/releases/download/v0.18.3.1-dev-tests-u18.04-01/trezor_tests";
|
||||||
sha256 = "81424cfc3965abdc24de573274bf631337b52fd25cefc895513214c613fe05c9";
|
sha256 = "d8938679b69f53132ddacea1de4b38b225b06b37b3309aa17911cfbe09b70b4a";
|
||||||
};
|
};
|
||||||
moneroTestsPatched = nixpkgs.runCommandCC "monero_trezor_tests" {} ''
|
moneroTestsPatched = nixpkgs.runCommandCC "monero_trezor_tests" {} ''
|
||||||
cp ${moneroTests} $out
|
cp ${moneroTests} $out
|
||||||
chmod +wx $out
|
chmod +wx $out
|
||||||
${nixpkgs.patchelf}/bin/patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out"
|
${nixpkgs.patchelf}/bin/patchelf \
|
||||||
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
|
--add-rpath "${nixpkgs.udev}/lib" \
|
||||||
|
"$out"
|
||||||
chmod -w $out
|
chmod -w $out
|
||||||
'';
|
'';
|
||||||
# do not expose rust's gcc: https://github.com/oxalica/rust-overlay/issues/70
|
# do not expose rust's gcc: https://github.com/oxalica/rust-overlay/issues/70
|
||||||
|
Loading…
Reference in New Issue
Block a user