Zephyr includes a test runner app called Twister. It has a dizzying number of features, and recently I wrote a script to configure the tool for my most-used operation: cycle testing on embedded devices.