1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
set(MODPREFIX cmakelang.command_tests)
set(_testnames
TestAddCustomCommand
TestAddExecutableCommand
TestAddLibraryCommand
TestConditional
TestExport
TestFile
TestForeach
TestInstall
TestMiscFormatting
TestSetTargetProperties
TestSet)
foreach(testname ${_testnames})
tangent_addtest(
NAME cmakelang-${testname}
COMMAND python -Bm ${MODPREFIX} ${testname}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
endforeach()
if(NOT IS_TRAVIS_CI)
foreach(testname ${_testnames})
tangent_addtest(
NAME cmakelang-${testname}_py3
COMMAND python3 -Bm ${MODPREFIX} ${testname}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
endforeach()
endif()
|