Project

General

Profile

Revision 99a9d521 regression_tests/modules/strategies.cmake

View differences:

regression_tests/modules/strategies.cmake
80 80
      COMMAND  make -f ${L}.makefile
81 81
      WORKING_DIRECTORY ${GEN_SRC_DIR})	
82 82

  
83
if(EXISTS ${GEN_SRC_DIR}/${L}_${GEN_NODE})
84
    execute_process(RESULT_VARIABLE res 
85
      COMMAND ${BASH} -c "./${L}_${GEN_NODE} < ${L}_${GEN_NODE}_input_values > ${L}_${GEN_NODE}_${GEN_OPTS_CUT}_output_values"
86
      WORKING_DIRECTORY ${GEN_SRC_DIR})	
87
    file(REMOVE ${GEN_SRC_DIR}/${L}_${GEN_NODE} ${GEN_SRC_DIR}/io_frontend.o ${GEN_SRC_DIR}/${L}.c ${GEN_SRC_DIR}/${L}.h ${GEN_SRC_DIR}/${L}.lusic ${GEN_SRC_DIR}/${L}.makefile ${GEN_SRC_DIR}/${L}.o ${GEN_SRC_DIR}/${L}_alloc.h ${GEN_SRC_DIR}/${L}_main.c ${GEN_SRC_DIR}/${L}_main.o )
88
    if(${res} STREQUAL "0")
89
      file(COPY  ${GEN_SRC_DIR}/${L}_${GEN_NODE}_${GEN_OPTS_CUT}_output_values DESTINATION  ${LUSTRE_OUTPUT_DIR})
83
    if(EXISTS ${GEN_SRC_DIR}/${L}_${GEN_NODE})
84
        execute_process(RESULT_VARIABLE res 
85
          COMMAND ${BASH} -c "./${L}_${GEN_NODE} < ${L}_${GEN_NODE}_input_values > ${L}_${GEN_NODE}_${GEN_OPTS_CUT}_output_values"
86
          WORKING_DIRECTORY ${GEN_SRC_DIR})	
87
        file(REMOVE ${GEN_SRC_DIR}/${L}_${GEN_NODE} ${GEN_SRC_DIR}/io_frontend.o ${GEN_SRC_DIR}/${L}.c ${GEN_SRC_DIR}/${L}.h ${GEN_SRC_DIR}/${L}.lusic ${GEN_SRC_DIR}/${L}.makefile ${GEN_SRC_DIR}/${L}.o ${GEN_SRC_DIR}/${L}_alloc.h ${GEN_SRC_DIR}/${L}_main.c ${GEN_SRC_DIR}/${L}_main.o )
88
        if(${res} STREQUAL "0")
89
          file(COPY  ${GEN_SRC_DIR}/${L}_${GEN_NODE}_${GEN_OPTS_CUT}_output_values DESTINATION  ${LUSTRE_OUTPUT_DIR})
90
        else()
91
          message(FATAL_ERROR "${L}_${GEN_NODE}_${GEN_OPTS_CUT}_output_values Error")
92
        endif()
90 93
    else()
91
      message(FATAL_ERROR "${L}_${GEN_NODE}_${GEN_OPTS_CUT}_output_values Error")
94
      #Uncomment the first line to remove lustre files in case references are not generated.
95
      #file(REMOVE ${GEN_SRC_DIR}/${L}.lus ${GEN_SRC_DIR}/${L}.lusi ${GEN_SRC_DIR}/${L}.c ${GEN_SRC_DIR}/${L}.h ${GEN_SRC_DIR}/${L}.lusic ${GEN_SRC_DIR}/${L}.makefile)
96
      #message(FATAL_ERROR "deleting ${GEN_SRC_DIR}/${L}.lus example Error")
92 97
    endif()
93 98
  endif()
94
  endif()
95 99

  
96 100

  
97 101
endfunction(Copy_or_generate_lusi_input_and_output_values_for_reference)

Also available in: Unified diff