How do I auto-test my port?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
pulkin
Posts: 49
Joined: Tue Feb 19, 2019 10:22 pm

How do I auto-test my port?

Post by pulkin » Tue Feb 25, 2020 6:54 pm

I want to flash my port and to test software-related functions (first). What is the accepted practice?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: How do I auto-test my port?

Post by jimmo » Tue Feb 25, 2020 11:05 pm

Have you seen the tests/run-tests script? You can pass the --device flag (and --target) and it'll run the tests on an attached board instead.

At it's core, it's really just equivalent to using pyboard.py to run code on the device and compare the output, but more automated.

pulkin
Posts: 49
Joined: Tue Feb 19, 2019 10:22 pm

Re: How do I auto-test my port?

Post by pulkin » Wed Feb 26, 2020 9:15 am

That looks much better than I was expecting. Thanks.

Post Reply