I would like to have my iphone test app to be tested automatically in an IPhone. The following are the steps I would like to have:
Check out UISpec http://code.google.com/p/uispec/
It's a full automation test framework being developed for the iphone.
The tool you probably want to use for the build and install is Applescript. Something like:
tell application "Xcode" to launch
I'm not pretending that this is a complete answer; there are still a lot of things to work out. But Applescript is going to be one of your key tools I believe.