First automated gfx smoketest script is checked in, along with some bug fixes