Like I said, if it's an OBD-II car, they check for fault codes. No codes? On your way. If earlier than OBD-II, they strap the car down, put tubes with gas sniffers on the exhaust pipes, and run the car through a simulated drive cycle on a roller dyno. And they pressure-test the fuel system.