mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
ci: simplify HW test definitions
This commit is contained in:
parent
2ae8e954bf
commit
28978640b3
@ -22,7 +22,7 @@ hardware core regular device test:
|
|||||||
- core fw regular debug build
|
- core fw regular debug build
|
||||||
variables:
|
variables:
|
||||||
PYTEST_TIMEOUT: "1200"
|
PYTEST_TIMEOUT: "1200"
|
||||||
TESTS_SKIP: "-k 'not 15_of_15 and not test_multisig_mismatch_inputs and not test_sign_tx and not signtx_bgold and not test_opreturn'"
|
TESTS_SKIP: "-k 'not 15_of_15 and not signtx_bgold and not send_bch_multisig_change'"
|
||||||
script:
|
script:
|
||||||
- cd ci/hardware_tests
|
- cd ci/hardware_tests
|
||||||
- set -a
|
- set -a
|
||||||
@ -30,31 +30,7 @@ hardware core regular device test:
|
|||||||
- set +a
|
- set +a
|
||||||
- nix-shell --run "cd ../.. && poetry install"
|
- nix-shell --run "cd ../.. && poetry install"
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_[a-r]*.py"
|
- nix-shell --run "poetry run pytest -m 'altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests"
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_signtx_a*.py ../../tests/device_tests/test_msg_signtx_b[a-c]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_signtx_b[d-z]*py ../../tests/device_tests/test_msg_signtx_[c-k]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_signtx_[l-z]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_sign[^t]*.py ../../tests/device_tests/test_msg_s[^i]*.py ../../tests/device_tests/test_msg_[t-z]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_[^m]*.py ../../tests/device_tests/test_m[^s]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'not altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_[a-l]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'not altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_[n-z]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'not altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_m[^s]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'not altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_[a-r]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'not altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_signt*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'not altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_sign[^t]*.py ../../tests/device_tests/test_msg_s[^i]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'not altcoin and not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_[t-z]*.py"
|
|
||||||
timeout: 4h
|
timeout: 4h
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
@ -76,7 +52,7 @@ hardware core btconly device test:
|
|||||||
variables:
|
variables:
|
||||||
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
||||||
PYTEST_TIMEOUT: "1200"
|
PYTEST_TIMEOUT: "1200"
|
||||||
TESTS_SKIP: "-k 'not 15_of_15 and not test_multisig_mismatch_inputs and not test_sign_tx'"
|
TESTS_SKIP: "-k 'not 15_of_15'"
|
||||||
script:
|
script:
|
||||||
- cd ci/hardware_tests
|
- cd ci/hardware_tests
|
||||||
- set -a
|
- set -a
|
||||||
@ -84,11 +60,7 @@ hardware core btconly device test:
|
|||||||
- set +a
|
- set +a
|
||||||
- nix-shell --run "cd ../.. && poetry install"
|
- nix-shell --run "cd ../.. && poetry install"
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_[a-r]*.py ../../tests/device_tests/test_msg_[t-z]*.py"
|
- nix-shell --run "poetry run pytest -m 'not sd_card' $TESTS_SKIP ../../tests/device_tests"
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'not sd_card' $TESTS_SKIP ../../tests/device_tests/test_m[^s]*.py ../../tests/device_tests/test_[^m]*.py"
|
|
||||||
- nix-shell --run "poetry run python bootstrap.py tt ../../trezor-*.bin"
|
|
||||||
- nix-shell --run "poetry run pytest --random-order-bucket=none -x -m 'not sd_card' $TESTS_SKIP ../../tests/device_tests/test_msg_s*.py"
|
|
||||||
timeout: 3h
|
timeout: 3h
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
|
Loading…
Reference in New Issue
Block a user