~mitya57/pkg-kde-tools/0.15.16ubuntu1

« back to all changes in this revision

Viewing changes to t/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2011-05-24 12:28:48 UTC
  • mfrom: (0.1.34 sid)
  • Revision ID: james.westby@ubuntu.com-20110524122848-rypmzvzs1x7fwvnq
Tags: 0.13.1
* Fix sections libdlrestrictions1 and libdlrestrictions-dev (libs and
  libdevel respectively).
* Bump Standards-Version to 3.9.2: no changes needed.
* Relicense DLRestrictions under less troublesome LGPLv2.1.
* While installing, preserve source permissions of files in cmake, makefiles,
  qt-kde-team and some other directories. This solves unexecutable scripts
  problem.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function(add_perl_test path)
 
2
    get_filename_component(filename "${path}" NAME)
 
3
    string(REGEX REPLACE "\\.t$" "" testname ${filename})
 
4
 
 
5
    # Custom working directory
 
6
    set(cmd_prefix)
 
7
    if (ARGV1)
 
8
        set(cmd_prefix ${CMAKE_COMMAND} -E chdir ${ARGV1})
 
9
    endif (ARGV1)
 
10
    add_test(${testname}
 
11
        ${cmd_prefix} ${CMAKE_SOURCE_DIR}/run-local ${PERL_EXECUTABLE} -MTest::Harness
 
12
        -e "$Test::Harness::verbose=\\\$ENV{VERBOSE}||0; runtests '${path}'")
 
13
endfunction(add_perl_test path)
 
14
 
 
15
# Syntax check of perl modules and scripts
 
16
add_perl_test("${CMAKE_CURRENT_SOURCE_DIR}/perl_syntax_check.t" "${CMAKE_SOURCE_DIR}")
 
17
 
 
18
add_subdirectory(dlrestrictions)