It is currently impossible to test openGL iPhone apps right now despite what you might read here or here. Both the google-toolbox-for-mac google code project and rbiphonetest ruby gem are intended for regular cocoa applications only and admittedly suffer from limitations of which of the apple frameworks you can have imported into your projects .
[There may be]... significant differences between your available Mac-based frameworks, such as Cocoa, and the iPhone-based frameworks, such as UIKit. We need to compare the framework names, header files and method signatures.
So for example, you cannot currently unit test any class that depends on/includes the UIKit framework. Why? It doesn’t exist on your Mac, so the Mac/Intel compiler cannot link it in. We’re compiling and running our tests with RubyCocoa, which itself is built against the Mac/Intel frameworks, not the iPhone frameworks....