mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 02:48:18 +00:00
tests: rework device tests to checkout just device_tests subdirectory from python-trezor repo
This commit is contained in:
parent
596d41e68c
commit
3a35a5a5be
2
Makefile
2
Makefile
@ -45,7 +45,7 @@ test: ## run unit tests
|
|||||||
cd tests ; ./run_tests.sh
|
cd tests ; ./run_tests.sh
|
||||||
|
|
||||||
testpy: ## run selected unit tests from python-trezor
|
testpy: ## run selected unit tests from python-trezor
|
||||||
cd tests ; ./run_tests_python_trezor.sh
|
cd tests ; ./run_tests_device.sh
|
||||||
|
|
||||||
pylint: ## run pylint on application sources
|
pylint: ## run pylint on application sources
|
||||||
pylint -E $(shell find src -name *.py)
|
pylint -E $(shell find src -name *.py)
|
||||||
|
2
tests/.gitignore
vendored
2
tests/.gitignore
vendored
@ -1 +1 @@
|
|||||||
python-trezor/
|
device_tests/
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -d python-trezor ]; then
|
if [ \! -d device_tests ]; then
|
||||||
cd python-trezor ; git pull ; cd ..
|
curl -s -L https://github.com/trezor/python-trezor/archive/master.tar.gz | tar -xvz --strip-components=2 python-trezor-master/tests/device_tests
|
||||||
else
|
|
||||||
git clone https://github.com/trezor/python-trezor.git
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# run emulator
|
# run emulator
|
||||||
@ -14,7 +12,7 @@ UPY_PID=$!
|
|||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
cd ../tests/python-trezor/tests/device_tests
|
cd ../tests/device_tests
|
||||||
|
|
||||||
error=0
|
error=0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user