1
function(add_perl_test path)
2
get_filename_component(filename "${path}" NAME)
3
string(REGEX REPLACE "\\.t$" "" testname ${filename})
5
# Custom working directory
8
set(cmd_prefix ${CMAKE_COMMAND} -E chdir ${ARGV1})
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)
15
# Syntax check of perl modules and scripts
16
add_perl_test("${CMAKE_CURRENT_SOURCE_DIR}/perl_syntax_check.t" "${CMAKE_SOURCE_DIR}")
18
add_subdirectory(dlrestrictions)