Skip to content
Ralf Steinert edited this page Nov 26, 2026 · 2 revisions

bench-automation is an end-of-line test station for a 12 V embedded PC, written in Python. It does what a production test does — power the board up through a lab supply, check inrush and idle current, measure every supply rail through a relay multiplexer and a DMM, capture the power-on with an oscilloscope, compare the boot log with a golden log, log in on the serial console and run on-device checks — and gives every unit a verdict, a report and a printable test protocol.

All instruments and the board itself are simulated by scpi-sim, so the whole station runs on a laptop or in CI. For real hardware only the configuration changes.

HTML report of a unit with an inrush spike that only the oscilloscope catches

What it is for

  • A worked example of a production test: the sequence, the limits, the abort rules and the reports a real end-of-line station needs, in about 1,100 lines of Python you can read in an evening.
  • Proof that the test catches real defects. Eleven faults can be injected into the simulated board, and the test suite checks that each one fails exactly the step that should catch it.
  • A starting point for your own station: point the resources at your instruments, adjust the limits, subclass a driver where your instrument speaks a different dialect.

Where to start

If you want to … read
run the station in two minutes Getting started
see how each defect is caught, and what would miss it Fault walkthrough
hand a signed document over with every unit Test protocol
record the boot log of a good board and add your own known faults Golden boot log
connect real instruments and a real board Real hardware

The README is the reference for the configuration and the architecture. This wiki adds walkthroughs and background.

The tool chain

bench-automation ties together the other steitec test tools:

Tool Role in the station
scpi-sim the simulated supply, DMM, multiplexer, oscilloscope and the board
boot-log-diff the "Boot log" step: comparison with the golden log and diagnosis of known faults
test-protocol the printable test protocol of each unit

Clone this wiki locally