summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/trace-json-v1-expand-check.cmake
blob: 7916d2ea86280a2409afe19afd0c8cb028ef8a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
if(PYTHON_EXECUTABLE)
  execute_process(
    COMMAND ${PYTHON_EXECUTABLE} "${RunCMake_SOURCE_DIR}/trace-json-v1-check.py" --expand "${RunCMake_BINARY_DIR}/json-v1-expand.trace"
    RESULT_VARIABLE result
    OUTPUT_VARIABLE output
    ERROR_VARIABLE output
    )
  if(NOT result EQUAL 0)
    set(RunCMake_TEST_FAILED "JSON trace validation failed:\n${output}")
  endif()
endif()