1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 23:18:13 +00:00

tests/upgrade tests: patch emulators on NixOS

This commit is contained in:
Tomas Susanka 2019-10-22 10:54:18 +02:00 committed by Pavol Rusnak
parent ddd9bee059
commit bfa5047012
3 changed files with 16 additions and 1 deletions

View File

@ -3,6 +3,10 @@ SITE="https://firmware.corp.sldev.cz/upgrade_tests/"
cd "$(dirname "$0")"
# download all emulators without index files, without directories and only if not present
wget --no-verbose --no-clobber --no-parent --cut-dirs=2 --no-host-directories --recursive --reject "index.html*" -P emulators/ $SITE
wget -e robots=off --no-verbose --no-clobber --no-parent --cut-dirs=2 --no-host-directories --recursive --reject "index.html*" -P emulators/ $SITE
chmod u+x emulators/trezor-emu-*
if [ -f /etc/NIXOS ]; then
cd emulators && nix-shell --run "autoPatchelf trezor-emu*"
fi

View File

@ -1,2 +1,3 @@
*
!shell.nix
!.gitignore

10
tests/emulators/shell.nix Normal file
View File

@ -0,0 +1,10 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "trezor-patch-emulators";
buildInputs = [
autoPatchelfHook
SDL2
SDL2_image
];
}