--- ray/resources/cmake_tests/test_getinfo.cmake 2017/12/04 21:58:10 1.1 +++ ray/resources/cmake_tests/test_getinfo.cmake 2019/04/03 20:18:54 1.3 @@ -1,19 +1,7 @@ include(setup_paths.cmake) - execute_process( - WORKING_DIRECTORY ${office_dir} - COMMAND getinfo${CMAKE_EXECUTABLE_SUFFIX} test/raytest_rpict.hdr - OUTPUT_FILE test/raytest_falsecolor.hdr + WORKING_DIRECTORY ${test_output_dir} + COMMAND ./resources/cmake_tests/test_lib.rb test_getinfo RESULT_VARIABLE res ) -if(NOT ${res} EQUAL 0) - message(FATAL_ERROR "Bad return value from getinfo, res = ${res}") -endif() - -file(READ ${office_dir}/test/raytest_falsecolor.hdr test_output) -if(test_output MATCHES "RADIANCE") - message(STATUS "passed") -else() - message(STATUS "failed") -endif() \ No newline at end of file