mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-09 06:02:40 +00:00
feat(tests): use connect v9 in tests
This commit is contained in:
parent
031bac4a9b
commit
2269c6d0fe
@ -1,24 +1,24 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Cloning connect repository and running the tests from there
|
# Cloning trezor-suite repository and running connect tests from there
|
||||||
|
|
||||||
FILE_DIR="$(dirname "${0}")"
|
FILE_DIR="$(dirname "${0}")"
|
||||||
cd ${FILE_DIR}
|
cd ${FILE_DIR}
|
||||||
|
|
||||||
CONNECT_DIR="connect"
|
TREZOR_SUITE_DIR="trezor-suite"
|
||||||
|
|
||||||
# For quicker local usage, do not cloning connect repo if it already exists
|
# For quicker local usage, do not cloning connect repo if it already exists
|
||||||
if [[ ! -d "${CONNECT_DIR}" ]]
|
if [[ ! -d "${TREZOR_SUITE_DIR}" ]]
|
||||||
then
|
then
|
||||||
git clone https://github.com/trezor/connect.git
|
git clone https://github.com/trezor/trezor-suite.git
|
||||||
cd ${CONNECT_DIR}
|
cd ${TREZOR_SUITE_DIR}
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
else
|
else
|
||||||
cd ${CONNECT_DIR}
|
cd ${TREZOR_SUITE_DIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Changing 'localhost' to '127.0.0.1' in websocket client as a workaround for CI servers"
|
echo "Changing 'localhost' to '127.0.0.1' in websocket client as a workaround for CI servers"
|
||||||
sed -i 's/localhost/127.0.0.1/g' ./tests/websocket-client.js
|
sed -i 's/localhost/127.0.0.1/g' ./packages/integration-tests/websocket-client.js
|
||||||
|
|
||||||
# Taking an optional script argument with emulator version
|
# Taking an optional script argument with emulator version
|
||||||
if [ ! -z "${1}" ]
|
if [ ! -z "${1}" ]
|
||||||
@ -30,4 +30,4 @@ fi
|
|||||||
echo "Will be running with ${EMU_VERSION} emulator"
|
echo "Will be running with ${EMU_VERSION} emulator"
|
||||||
|
|
||||||
# Using -d flag to disable docker, as tenv is already running on the background
|
# Using -d flag to disable docker, as tenv is already running on the background
|
||||||
nix-shell --run "yarn && tests/run.sh -d -f ${EMU_VERSION} -s 'yarn test:integration methods'"
|
nix-shell --run "yarn && yarn build:libs && ./docker/docker-connect-test.sh node -p methods -d -f ${EMU_VERSION}"
|
||||||
|
Loading…
Reference in New Issue
Block a user