Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9025


Ignore:
Timestamp:
Mar 11, 2012, 8:26:30 PM (13 years ago)
Author:
landauf
Message:
  • added CTestCustom.cmake to add dependencies to $PATH when executing tests with ctest
  • added ARGS parameter for "test" target in make to pass command line options to ctest (make test ARGS="—some-ctest-option")
  • added unit tests for math functions in util library
Location:
code/branches/testing/test
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/test/CMakeLists.txt

    r9022 r9025  
    11ENABLE_TESTING()
    22
    3 ADD_CUSTOM_TARGET(test COMMAND ${CMAKE_CTEST_COMMAND})
     3ADD_CUSTOM_TARGET(test COMMAND ${CMAKE_CTEST_COMMAND} "$(ARGS)" COMMENT "Running tests")
    44
    55ADD_EXECUTABLE(sample_test EXCLUDE_FROM_ALL SampleTest.cc)
     
    4141
    4242ADD_TEST(gtest_sample ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/gtest_sample)
     43
     44#-----------------
     45
     46CONFIGURE_FILE("CTestCustom.cmake" "CTestCustom.cmake" @ONLY)
     47
     48INCLUDE_DIRECTORIES(
     49  ../src/libraries
     50  ../src/orxonox
     51  ../src/modules
     52  ${CMAKE_BINARY_DIR}/src
     53  ${OGRE_INCLUDE_DIR}
     54  ${POCO_INCLUDE_DIR}
     55)
     56
     57ADD_SUBDIRECTORY(util)
Note: See TracChangeset for help on using the changeset viewer.