Testsuite: Add ability to re-use stdout/stderr etc for multiple tests
As documented on https://ghc.haskell.org/trac/ghc/wiki/Building/RunningTests/Adding
In some cases you may want to re-use the same stdout file for multiple tests. You can accomplish this using the use_specs
function.
use_specs
allows one to override files based on suffixes. e.g. 'stdout'
, 'stderr'
, 'asm'
, 'prof.sample'
, etc. Example use_specs({'stdout' : 'prof002.stdout'})
to make the test re-use prof002.stdout
.