pyctest.ctest

Direct interface to CTest executable

python -m pyctest.ctest [ARG [ARG]]
pyctest.ctest.CTest(*args, **kwargs)[source]

Function for direct access to CTest

Parameters:
  • args (list) – List of CTest arguments (added to cmd-line in order after kwargs)
  • kwargs (dict) – List of CTest variable definitions (added before args)

Example

pyctest.ctest.CTest('-V', '-S', 'CTestScript.cmake', '-j1')
_kwargs['STAGES'] = 'Start;Update;Build;Test;Submit'
_args = [ '-V', '-S', 'Stages.cmake', '-j1' ]
pyctest.ctest.CTest(_args, _kwargs)