A test program for a data processing apparatus is produced using a genetic
algorithm which mutates instances being ordered lists of program
instructions within a population forming the test program. The
populations are evaluated using a metric by which the population as a
whole is scored for its stimulation of predetermined functional points
within the data processing apparatus when a determination is being made
as to whether or not a particular instance should be swapped in or out of
the population.