I know a waysome possible ways, but I think itsthey are a bit far fetched for a maintainable test setup. Might get you going though.
VNC:
- Jailbreak an iPhone/iPad
- Install VNC server software
- Use a test framework like T-Plan Robot to run tests against the device over VNC
There is also a older open-source T-Plan robot version at: http://sourceforge.net/projects/tplanrobot/
Seems that you do not have to jailbreaknot have to jailbreak if you use the iOS mirror feature: http://www.t-plan.com/robot/docs/latest/scripting/ios.html
Emulator:
You can use Sikuli to test against a local emulator: http://www.sikuli.org/