~charlesk/indicator-datetime/lp-1591246-fix-message-icons

« back to all changes in this revision

Viewing changes to tests/CMakeLists.txt

Use a different default sound for alarms and calendar events. Fixes: #1505688
Approved by: Antti Kaijanmäki, Rodney Dawes, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 
75
75
function(add_eds_ics_test_by_name name)
76
76
  set (TEST_NAME ${name})
 
77
  configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${TEST_NAME}.ics.in"
 
78
                 "${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}.ics")
77
79
  add_executable(${TEST_NAME} ${TEST_NAME}.cpp gschemas.compiled)
78
80
  target_link_libraries (${TEST_NAME} indicatordatetimeservice gtest ${DBUSTEST_LIBRARIES} ${SERVICE_DEPS_LIBRARIES} ${GTEST_LIBS})
79
81
  add_test (${TEST_NAME}
82
84
            ${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}               # arg2: test executable path
83
85
            ${TEST_NAME}                                           # arg3: test name
84
86
            ${CMAKE_CURRENT_SOURCE_DIR}/test-eds-ics-config-files  # arg4: base directory for config file template
85
 
            ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_NAME}.ics)          # arg5: the ical file for this test
 
87
            ${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}.ics)          # arg5: the ical file for this test
86
88
endfunction()
87
89
add_eds_ics_test_by_name(test-eds-ics-all-day-events)
88
90
add_eds_ics_test_by_name(test-eds-ics-repeating-events)