ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/resources/cmake_tests/test_falsecolor.cmake
Revision: 1.2
Committed: Mon Jan 8 16:51:31 2018 UTC (6 years, 4 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad5R3, HEAD
Changes since 1.1: +3 -4 lines
Log Message:
Update to CMake build system from Rob G. and Alex S., adding test cases

File Contents

# Content
1 include(setup_paths.cmake)
2
3 execute_process(
4 COMMAND ${perl} ${rpath}/falsecolor${CMAKE_PERL_SUFFIX} -e -i ${resources_dir}/evalglare/testimage.hdr
5 OUTPUT_FILE ${test_output_dir}/falsecolor_out.hdr
6 RESULT_VARIABLE res
7 )
8 if(NOT ${res} EQUAL 0)
9 message(FATAL_ERROR "Bad return value from falsecolor, res = ${res}")
10 endif()
11
12 file(READ ${test_output_dir}/falsecolor_out.hdr test_output)
13 if(test_output MATCHES "pcomb")
14 message(STATUS "passed")
15 else()
16 message(STATUS "failed")
17 endif()