~stgraber/indicator-datetime/fix-deps

« back to all changes in this revision

Viewing changes to tests/CMakeLists.txt

  • Committer: CI Train Bot
  • Author(s): Charles Kerr
  • Date: 2015-06-24 12:51:24 UTC
  • mfrom: (413.1.1 faster-eds-tests)
  • Revision ID: ci-train-bot@canonical.com-20150624125124-del5xrxxa3kt7wsq
Speedups/cleanups to the EDS regression tests
Approved by: Pete Woods, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
## 
71
71
 
72
72
find_program(DBUS_RUNNER dbus-test-runner)
73
 
find_program(EVOLUTION_CALENDAR_FACTORY evolution-calendar-factory PATHS /usr/lib/evolution/)
74
 
find_program(EVOLUTION_SOURCE_REGISTRY evolution-source-registry PATHS /usr/lib/evolution/)
75
 
find_program(GVFSD gvfsd PATHS /usr/lib/gvfs/)
76
 
OPTION(EVOLUTION_SOURCE_SERVICE_NAME "DBus name for source registry")
77
 
if(NOT EVOLUTION_SOURCE_SERVICE_NAME)
78
 
    set(EVOLUTION_SOURCE_SERVICE_NAME "org.gnome.evolution.dataserver.Sources3")
79
 
endif()
80
73
 
81
74
function(add_eds_ics_test_by_name name)
82
75
  set (TEST_NAME ${name})
84
77
  target_link_libraries (${TEST_NAME} indicatordatetimeservice gtest ${DBUSTEST_LIBRARIES} ${SERVICE_DEPS_LIBRARIES} ${GTEST_LIBS})
85
78
  add_test (${TEST_NAME}
86
79
            ${CMAKE_CURRENT_SOURCE_DIR}/run-eds-ics-test.sh
87
 
            ${DBUS_RUNNER}                                            # arg1: dbus-test-runner exec
88
 
            ${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}                  # arg2: test executable path
89
 
            ${TEST_NAME}                                              # arg3: test name
90
 
            ${EVOLUTION_CALENDAR_FACTORY}                             # arg4: evolution-calendar-factory exec
91
 
            ${EVOLUTION_SOURCE_SERVICE_NAME}                          # arg5: dbus name for source registry 
92
 
            ${EVOLUTION_SOURCE_REGISTRY}                              # arg6: evolution-source-registry exec
93
 
            ${GVFSD}                                                  # arg7: gvfsd exec
94
 
            ${CMAKE_CURRENT_SOURCE_DIR}/test-eds-ics-config-files     # arg8: base directory for config file template
95
 
            ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_NAME}.ics)             # arg9: the ical file for this test
 
80
            ${DBUS_RUNNER}                                         # arg1: dbus-test-runner exec
 
81
            ${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}               # arg2: test executable path
 
82
            ${TEST_NAME}                                           # arg3: test name
 
83
            ${CMAKE_CURRENT_SOURCE_DIR}/test-eds-ics-config-files  # arg4: base directory for config file template
 
84
            ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_NAME}.ics)          # arg5: the ical file for this test
96
85
endfunction()
97
86
add_eds_ics_test_by_name(test-eds-ics-all-day-events)
98
87
add_eds_ics_test_by_name(test-eds-ics-repeating-events)