A set of one or more diagnostic tests that a computer or peripheral device (such as a printer) performs on itself.