~osomon/ubuntu-ui-extras/revert-changed-tests

« back to all changes in this revision

Viewing changes to tests/unittests/CMakeLists.txt

  • Committer: Ugo Riboni
  • Date: 2013-06-25 13:51:18 UTC
  • Revision ID: ugo.riboni@canonical.com-20130625135118-scs2wpej1kyg3fc1
Merge changes to Browser.qml related to tabs support, except autopilot tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
qt5_use_modules(tst_HistoryMatchesModelTests Core Sql Test)
32
32
add_test(tst_HistoryMatchesModelTests ${CMAKE_CURRENT_BINARY_DIR}/tst_HistoryMatchesModelTests)
33
33
 
 
34
set(TM_SRC
 
35
    ${BROWSER_SOURCE_DIR}/tabs-model.cpp
 
36
    tst_TabsModelTests.cpp
 
37
)
 
38
add_executable(tst_TabsModelTests ${TM_SRC})
 
39
include_directories(${BROWSER_SOURCE_DIR})
 
40
qt5_use_modules(tst_TabsModelTests Core Quick Test)
 
41
add_test(tst_TabsModelTests ${CMAKE_CURRENT_BINARY_DIR}/tst_TabsModelTests)
 
42
set_tests_properties(tst_TabsModelTests PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=minimal")
 
43
 
34
44
# copy qml files over to build dir to be able to import them in tests
35
45
foreach(qmlFile ${QML_FILES})
36
46
  file(COPY ${qmlFile} DESTINATION ${CMAKE_BINARY_DIR}/modules/Ubuntu/Components/Extras/Browser)