~ci-train-bot/url-dispatcher/url-dispatcher-ubuntu-yakkety-landing-061

« back to all changes in this revision

Viewing changes to tests/url_dispatcher_testability/CMakeLists.txt

  • Committer: CI bot
  • Author(s): Jussi Pakkanen
  • Date: 2014-10-31 15:50:49 UTC
  • mfrom: (74.1.8 url-dispatcher)
  • Revision ID: ps-jenkins@lists.canonical.com-20141031155049-m4fu0cnmriksccmp
General cleanups 
Approved by: Ted Gould, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
execute_process(COMMAND python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
2
2
    OUTPUT_VARIABLE PYTHON_PACKAGE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
3
3
 
4
 
install(FILES fixture_setup.py fake_dispatcher.py test_fake_dispatcher.py
 
4
configure_file(
 
5
  test_fake_dispatcher.py.in
 
6
  test_fake_dispatcher.py
 
7
  )
 
8
 
 
9
install(FILES fixture_setup.py fake_dispatcher.py ${CMAKE_CURRENT_BINARY_DIR}/test_fake_dispatcher.py
5
10
    DESTINATION ${PYTHON_PACKAGE_DIR}/url_dispatcher_testability
6
11
)
7
12
 
8
 
configure_file(
9
 
  "${PROJECT_SOURCE_DIR}/tests/url_dispatcher_testability/test_fake_dispatcher.py.in"
10
 
  "${PROJECT_SOURCE_DIR}/tests/url_dispatcher_testability/test_fake_dispatcher.py"
11
 
  )
 
13
add_test(fake-dispatcher dbus-test-runner --task nosetests3 --parameter ${CMAKE_CURRENT_BINARY_DIR}/test_fake_dispatcher.py)
 
14
set_tests_properties(fake-dispatcher PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}/..)
12
15
 
13
 
add_test(fake-dispatcher dbus-test-runner --task nosetests3 --parameter ${PROJECT_SOURCE_DIR}/tests/url_dispatcher_testability/test_fake_dispatcher.py)