You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DartTestfile.txt 1.1KB

123456789101112131415161718192021222324
  1. # Basic Template Test for automatic run a scenario that produce a file to be compared to a reference file
  2. # You need to set the name of the test according to name of scenario file and reference file
  3. SET(TEST_NAME SinusOscillator)
  4. SET(SCENARIO_TO_TEST "${TEST_NAME}.xml")
  5. IF(WIN32)
  6. SET(EXT cmd)
  7. SET(OS_FLAGS "--no-pause")
  8. ELSE()
  9. SET(EXT sh)
  10. SET(OS_FLAGS "")
  11. ENDIF()
  12. ADD_TEST(clean_${TEST_NAME} "${CMAKE_COMMAND}" "-E" "remove" "-f" "${TEST_NAME}.csv")
  13. ADD_TEST(run_${TEST_NAME} "$ENV{OV_BINARY_PATH}/openvibe-designer.${EXT}" ${OS_FLAGS} "--invisible" "--play" ${SCENARIO_TO_TEST})
  14. ADD_TEST(compare_${TEST_NAME} "$ENV{OV_BINARY_PATH}/test_thresholdDataComparison.${EXT}" ${OS_FLAGS} "${TEST_NAME}.csv" "${TEST_NAME}.ref.csv" 0.001)
  15. ## add some properties that help to debug
  16. SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL ${OV_LOGFILE})
  17. SET_TESTS_PROPERTIES(compare_${TEST_NAME} PROPERTIES ATTACHED_FILES_ON_FAIL "${TEST_NAME}.csv")
  18. SET_TESTS_PROPERTIES(compare_${TEST_NAME} PROPERTIES DEPENDS run_${TEST_NAME})
  19. SET_TESTS_PROPERTIES(run_${TEST_NAME} PROPERTIES DEPENDS clean_${TEST_NAME})