# File @ctestincludepath@ is generated by cmake.
# For changes please modify hip/tests/catch/external/Catch2/cmake/Catch2/catch_include.cmake.in

get_filename_component(_cmake_path cmake ABSOLUTE)

if(EXISTS "@EXEC_NAME@")
  execute_process(
  COMMAND "${_cmake_path}"
          -D "TEST_TARGET=@TARGET@"
          -D "TEST_EXECUTABLE=@EXEC_NAME@"
          -D "TEST_EXECUTOR=@crosscompiling_emulator@"
          -D "TEST_WORKING_DIR=@_workdir@"
          -D "TEST_SPEC=@_TEST_SPEC@"
          -D "TEST_EXTRA_ARGS=@_EXTRA_ARGS@"
          -D "TEST_PROPERTIES=@_PROPERTIES@"
          -D "TEST_PREFIX=@_TEST_PREFIX@"
          -D "TEST_SUFFIX=@_TEST_SUFFIX@"
          -D "TEST_LIST=@_TEST_LIST@"
          -D "TEST_REPORTER=@_REPORTER@"
          -D "TEST_OUTPUT_DIR=@_OUTPUT_DIR@"
          -D "TEST_OUTPUT_PREFIX=@_OUTPUT_PREFIX@"
          -D "TEST_OUTPUT_SUFFIX=@_OUTPUT_SUFFIX@"
          -D "CTEST_FILE=@ctestfilepath@"
          -P "@_CATCH_ADD_TEST_SCRIPT@"
  OUTPUT_VARIABLE output
  RESULT_VARIABLE result
  WORKING_DIRECTORY "@TEST_WORKING_DIR@"
  )
  # include the generated ctest file for execution
  include(@ctestfilepath@)
else()
  message(STATUS "executable not built : @EXEC_NAME@" )
endif()

