tillitis-key/hw/production_test/Makefile

36 lines
1.1 KiB
Makefile
Raw Normal View History

2023-03-02 22:43:26 +00:00
SHELL := /bin/bash
PYTHON_FILES = \
2023-03-02 22:52:52 +00:00
encode_usb_strings.py \
production_test_runner.py \
production_tests.py \
pybin2nvcm.py \
pynvcm.py \
reset.py \
iceflasher.py
2023-03-02 17:17:11 +00:00
2023-03-06 11:41:21 +00:00
# autopep8: Fixes simple format errors automatically
# mypy: static type hint analysis
# pylint: pep8 and static code analysis
2023-03-02 17:17:11 +00:00
lint:
2023-03-02 22:43:26 +00:00
autopep8 --in-place --max-line-length 70 --aggressive --aggressive ${PYTHON_FILES}
mypy --disallow-untyped-defs ${PYTHON_FILES}
2023-03-08 12:36:02 +00:00
pylint --generated-member=usb1.TRANSFER_COMPLETED,usb1.USBErrorInterrupted,usb1.USBErrorIO --max-line-length 70 ${PYTHON_FILES}
2023-03-02 22:43:26 +00:00
# Check that the NVCM generator gives a correct output for a known binary
verify-pybin2nvcm:
./pybin2nvcm.py nvcm_test/application_fpga.bin verify.nvcm
2023-03-02 22:43:26 +00:00
cmp verify.nvcm nvcm_test/application_fpga.nvcm
verify-nvcm:
time ./pynvcm.py --verify nvcm_test/application_fpga.bin
program-nvcm-danger:
./pynvcm.py -i
time ./pynvcm.py --my-design-is-good-enough --ignore-blank --write ../application_fpga/application_fpga.bin --verify nvcm_test/application_fpga.bin
./pynvcm.py -b
2023-03-02 22:43:26 +00:00
randomize-production-test:
./production_tests.py