1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 05:58:09 +00:00
trezor-firmware/tests/download_emulators.sh
Tomas Susanka 7364883c04 tests: do not check internal firmware.corp certificate
To be discussed with adminkos whether this is correct or not.
2020-06-12 17:33:03 +02:00

15 lines
489 B
Bash
Executable File

#!/usr/bin/env bash
set -e
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-check-certificate -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