diff options
author | anonymous <local@localhost> | 2010-07-02 19:12:29 +0700 |
---|---|---|
committer | anonymous <local@localhost> | 2010-07-02 22:14:18 +0700 |
commit | 3310d8a2909b5759686452e68159cbca61038a40 (patch) | |
tree | c6c40d81352f6e251b67cd25a36c8e74592decae /test/CMakeLists.txt | |
parent | 2c08f2cdacd5f35cadc9b41a8aee9a28d14da939 (diff) | |
download | libcxxrt-3310d8a2909b5759686452e68159cbca61038a40.tar.gz libcxxrt-3310d8a2909b5759686452e68159cbca61038a40.tar.bz2 libcxxrt-3310d8a2909b5759686452e68159cbca61038a40.tar.xz |
cmake scripts for testing are added
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e69de29..6e6ea58 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -0,0 +1,35 @@ + +set(CXXTEST_SOURCES + test.cc + test_exception.cc + test_guard.cc + test_typeinfo.cc + ) + + +add_executable(cxxrt-test-static ${CXXTEST_SOURCES}) +target_link_libraries(cxxrt-test-static cxxrt-static pthread dl) + +add_executable(cxxrt-test-shared ${CXXTEST_SOURCES}) +target_link_libraries(cxxrt-test-shared cxxrt-shared pthread dl) + +add_executable(system-test ${CXXTEST_SOURCES}) + +file(READ "${CMAKE_CURRENT_SOURCE_DIR}/expected_output.log" expected_output) + +add_test(system-test-test + ${CMAKE_CURRENT_SOURCE_DIR}/run_test.sh + ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/system-test + ${CMAKE_CURRENT_SOURCE_DIR}/expected_output.log) + +add_test(cxxrt-test-static-test + ${CMAKE_CURRENT_SOURCE_DIR}/run_test.sh + ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/cxxrt-test-static + ${CMAKE_CURRENT_SOURCE_DIR}/expected_output.log) + +add_test(cxxrt-test-shared-test + ${CMAKE_CURRENT_SOURCE_DIR}/run_test.sh + ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/cxxrt-test-shared + ${CMAKE_CURRENT_SOURCE_DIR}/expected_output.log) + + |