ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/resources/cmake_tests/test_evalglare.cmake
Revision: 1.1
Committed: Tue Jan 9 18:31:14 2018 UTC (6 years, 4 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad5R3, HEAD
Log Message:
Fixes to changes that were not applied fully the first time for CMake

File Contents

# Content
1 include(setup_paths.cmake)
2
3 execute_process(
4 WORKING_DIRECTORY ${test_output_dir}
5 COMMAND evalglare${CMAKE_EXECUTABLE_SUFFIX} -L 400 500 0.6 1.2 -B 0.4 -b 2500 -d -c outputimage.hdr ${resources_dir}/evalglare/testimage.hdr
6 OUTPUT_FILE evalglare_out.txt
7 RESULT_VARIABLE res
8 )
9
10 file(READ ${test_output_dir}/evalglare_out.txt test_output)
11 if(test_output MATCHES "band:band_omega,band_av_lum,band_median_lum,band_std_lum,band_perc_75,band_perc_95,band_lum_min,band_lum_max: 2.423399 2353.496003 1339.703125 2218.441248 3993.937463 5750.375098 68.348633 37142.499489")
12 message(STATUS "passed")
13 else()
14 message(STATUS "failed")
15 endif()