Add auto{conf,make} logic for tests.