Verbose tests
authorGianfranco Costamagna <costamagnagianfranco@yahoo.it>
Wed, 26 Nov 2014 13:10:09 +0100
changeset 10559 44095e0a0c1a
parent 10557 4bebbc5caa3d
child 10561 8b65886906f3
Verbose tests
.travis.yml
CMakeLists.txt
--- a/.travis.yml	Tue Nov 25 12:09:15 2014 +0100
+++ b/.travis.yml	Wed Nov 26 13:10:09 2014 +0100
@@ -25,7 +25,7 @@
   - sudo apt-get update -qq
   - sudo apt-get install debhelper cmake dpkg-dev libqt4-dev qt4-qmake libphysfs-dev libsdl1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-net1.2-dev bzip2 ghc libghc-mtl-dev libghc-parsec3-dev libghc-bytestring-show-dev libghc-vector-dev libghc-zlib-dev libghc-random-dev libghc-stm-dev libghc-network-dev libghc-dataenc-dev libghc-hslogger-dev libghc-utf8-string-dev libghc-sha-dev libghc-entropy-dev liblua5.1-0-dev imagemagick fpc fp-compiler fp-units-misc libpng-dev fp-units-gfx libavcodec-dev libavformat-dev freeglut3-dev libglew1.6-dev
 script: 
-  - mkdir build && cd build && cmake $BUILD_ARGS .. && make VERBOSE=1 && make test
+  - mkdir build && cd build && cmake $BUILD_ARGS .. && make VERBOSE=1 && make test_verbose
 notifications:
   irc:
     channels:
--- a/CMakeLists.txt	Tue Nov 25 12:09:15 2014 +0100
+++ b/CMakeLists.txt	Wed Nov 26 13:10:09 2014 +0100
@@ -231,6 +231,8 @@
 include(${CMAKE_MODULE_PATH}/cpackvars.cmake)
 
 enable_testing()
+add_custom_target(test         COMMAND ${CMAKE_CTEST_COMMAND} -E '^todo/' --timeout 300 --schedule-random)
+add_custom_target(test_verbose COMMAND ${CMAKE_CTEST_COMMAND} -E '^todo/' --timeout 300 --schedule-random -V)
 
 set(LUATESTS_DIR "${CMAKE_SOURCE_DIR}/tests/lua")
 set(TESTSDATA_DIR "${CMAKE_SOURCE_DIR}/share/hedgewars/Data")