File: CMakeLists.txt

package info (click to toggle)
user-session-migration 0.5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 204 kB
  • sloc: python: 281; ansic: 279; perl: 27; sh: 15; makefile: 11
file content (20 lines) | stat: -rw-r--r-- 826 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if(Python3_FOUND)
    file(COPY test_debhelper.py test_migration.py data
         DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

    if(NOT ${DPKG_BUILDPACKAGE} STREQUAL "DPKG_BUILDPACKAGE-NOTFOUND")
        add_test(NAME debhelper
                 COMMAND ${Python3_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/test_debhelper.py"
                 WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
    endif()

    add_test(NAME migration
             COMMAND ${Python3_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/test_migration.py"
             WORKING_DIRECTORY ${CMAKE_BINARY_DIR})

    add_test(build_user_session_migration
             ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR}
             --target user-session-migration)
    set_tests_properties(migration
                         PROPERTIES DEPENDS build_user_session_migration)
endif()