Changeset 5495


Ignore:
Timestamp:
Jun 7, 2017, 7:02:43 PM (2 years ago)
Author:
cameron
Message:

Use cmake test timeout property

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/CMakeLists.txt

    r5494 r5495  
    205205ENDIF()
    206206
     207
    207208add_test(
    208209  NAME greptest
    209210  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA
    210   COMMAND timeout 1000 python greptest.py ${CMAKE_BINARY_DIR}/icgrep)
     211  COMMAND python greptest.py ${CMAKE_BINARY_DIR}/icgrep)
    211212
    212213add_test(
    213214  NAME proptest
    214215  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA
    215   COMMAND timeout 2000 python greptest.py -d ${PROJECT_SOURCE_DIR}/../QA -t ${PROJECT_SOURCE_DIR}/../QA/proptest.xml ${CMAKE_BINARY_DIR}/icgrep)
     216  COMMAND python greptest.py -d ${PROJECT_SOURCE_DIR}/../QA -t ${PROJECT_SOURCE_DIR}/../QA/proptest.xml ${CMAKE_BINARY_DIR}/icgrep)
    216217
    217218add_test(
    218219  NAME abc_test
    219220  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA
    220   COMMAND timeout 200 ./run_abc ${CMAKE_BINARY_DIR}/icgrep)
     221  COMMAND ./run_abc ${CMAKE_BINARY_DIR}/icgrep)
    221222
    222223add_test(
    223224  NAME u8u16_test
    224225  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA/u8u16
    225   COMMAND timeout 15 ./run_all "${CMAKE_BINARY_DIR}/u8u16 -segment-size=16 -enable-segment-pipeline-parallel")
     226  COMMAND ./run_all "${CMAKE_BINARY_DIR}/u8u16 -segment-size=16 -enable-segment-pipeline-parallel")
    226227
    227228add_test(
    228229  NAME lz4d_test
    229230  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA/lz4d
    230   COMMAND timeout 15 ./run_all ${CMAKE_BINARY_DIR}/lz4d)
     231  COMMAND ./run_all ${CMAKE_BINARY_DIR}/lz4d)
    231232
    232233add_test(
    233234  NAME editd_test
    234235  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA/editd
    235   COMMAND timeout 50 python run_all.py -e ${CMAKE_BINARY_DIR})
     236  COMMAND python run_all.py -e ${CMAKE_BINARY_DIR})
    236237
    237238add_test(
    238239  NAME base64_test
    239240  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA/base64
    240   COMMAND timeout 15 python base64test.py ${CMAKE_BINARY_DIR}/base64)
     241  COMMAND python base64test.py ${CMAKE_BINARY_DIR}/base64)
     242
     243SET_PROPERTY(TEST greptest PROPERTY TIMEOUT 200)
     244SET_PROPERTY(TEST proptest PROPERTY TIMEOUT 1000)
     245SET_PROPERTY(TEST abc_test u8u16_test lz4d_test editd_test base64_test PROPERTY TIMEOUT 20)
     246
    241247
    242248add_custom_target (greptest
    243249  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA
    244   COMMAND timeout 600 python greptest.py "${CMAKE_BINARY_DIR}/icgrep -ea")
     250  COMMAND python greptest.py "${CMAKE_BINARY_DIR}/icgrep -ea")
    245251
    246252add_custom_target (proptest
    247253  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA
    248   COMMAND timeout 1000 python greptest.py -d ${PROJECT_SOURCE_DIR}/../QA -t ${PROJECT_SOURCE_DIR}/../QA/proptest.xml "${CMAKE_BINARY_DIR}/icgrep -ea")
     254  COMMAND python greptest.py -d ${PROJECT_SOURCE_DIR}/../QA -t ${PROJECT_SOURCE_DIR}/../QA/proptest.xml "${CMAKE_BINARY_DIR}/icgrep -ea")
    249255
    250256add_custom_target (u8u16_test
    251257  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA/u8u16
    252   COMMAND timeout 15 ./run_all "${CMAKE_BINARY_DIR}/u8u16 -ea -segment-size=16 -enable-segment-pipeline-parallel")
     258  COMMAND ./run_all "${CMAKE_BINARY_DIR}/u8u16 -ea -segment-size=16 -enable-segment-pipeline-parallel")
    253259
    254260add_custom_target (lz4d_test
    255261  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA/lz4d
    256   COMMAND timeout 15 ./run_all "${CMAKE_BINARY_DIR}/lz4d -ea")
     262  COMMAND ./run_all "${CMAKE_BINARY_DIR}/lz4d -ea")
    257263
    258264add_custom_target (editd_test
    259265  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA/editd
    260   COMMAND timeout 50 python run_all.py -e ${CMAKE_BINARY_DIR})
     266  COMMAND python run_all.py -e ${CMAKE_BINARY_DIR})
    261267
    262268add_custom_target (base64_test
    263269  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA/base64
    264   COMMAND timeout 20 python base64test.py "${CMAKE_BINARY_DIR}/base64 -ea")
     270  COMMAND python base64test.py "${CMAKE_BINARY_DIR}/base64 -ea")
    265271
    266272add_custom_target (abc_gen
     
    270276add_custom_target (abc_test
    271277  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA
    272   COMMAND timeout 200 ./run_abc "${CMAKE_BINARY_DIR}/icgrep -ea")
     278  COMMAND ./run_abc "${CMAKE_BINARY_DIR}/icgrep -ea")
    273279
    274280add_custom_target (check
Note: See TracChangeset for help on using the changeset viewer.