Unify dreamer-sim-chisel tests

It turns out that all of these test scripts were almost exactly the
same.  I managed to unify them with a bit of BASH hackery, so now
there's one less thing to worry about when adding a test!