There is already such an attenuator linearity test in the code. But disabled at the moment.
It steps through all 64 attenuator positions (0.5dB per step) and if all is well it should draw a perfect straight line on the display.
Will see if I can re-enable it.
The attenuator is solid state so it should not deteriorate over time. The early FW used in manufacturing did not test all attenuator positions as I was unaware of the less than zero fall-off rate of the attenuator.
In the current production all attenuators are tested to eliminate these? bad attenuators but there could be post production stress caused by low temperatures during air shipment.
------------------------------------------
For more info on the tinySA go to https://tinysa.org/wiki/