Hi, James Amundson <amundson@...> writes:
> Are there any CMake solutions for running tests in a cross-compiling > environment? Right now I have a lovely test suite that runs over sixty > different executables using the standard CMake and CTest setup. It works > exactly as I want under Linux, but now I need to run it on a > cross-compiling platform (in fact, two cross-compiling platforms: BG/P > and Cray XT5). I don't have cmake compiled for the target platform, so I > can't just run "ctest." Surely there must be other people with this > problem, but this mornings Google searches aren't turning up anything > for me. This is a great question, I'm currently trying to answer this myself. I have an idea that I think could work for me alas I did not yet implement it. Setup: Development system is connected to all test systems, I can SSH into all test systems without giving a password using public key authentication; this could differ for your setup, the point is that you can execute a command from your development system on the remote system without interaction like giving a password Process: 1) cross-compile tests on development system 2) move tests to test systems (I mount some folders and just move binaries) 3) register tests (one for each binary and test system) with CMAKE using the add_test(NAME <name> COMMAND <command>) syntax; the command for me would be something like "ssh testbox1 /path/to/tests/name" Now if you do make test, CMAKE should run all tests including the remote ones. seb _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake