ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/cmake_tests/test_setup.cmake
Revision: 1.2
Committed: Mon Dec 4 21:58:10 2017 UTC (6 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Added resources/ directory as requested by Rob G. and moved cmake_tests/ there

File Contents

# User Rev Content
1 greg 1.1 include(setup_paths.cmake) # configured file found in the same dir as this file
2    
3     file(REMOVE_RECURSE ${test_output_dir})
4     file(MAKE_DIRECTORY ${test_output_dir})
5    
6     message("Run: [oconv${CMAKE_EXECUTABLE_SUFFIX} model.b90 desk misc]")
7     execute_process(
8     COMMAND oconv${CMAKE_EXECUTABLE_SUFFIX} model.b90 desk misc
9     WORKING_DIRECTORY ${office_dir}
10     OUTPUT_FILE test/raytest_modelb.oct
11     RESULT_VARIABLE res
12     )
13     if(NOT ${res} EQUAL 0)
14     message(FATAL_ERROR "Bad return value from oconv, res = ${res}")
15     endif()
16    
17     message("Run:
18     [oconv${CMAKE_EXECUTABLE_SUFFIX} -f -i test/raytest_modelb.oct
19     window blinds lights lamp picture]")
20     execute_process(
21     COMMAND oconv${CMAKE_EXECUTABLE_SUFFIX}
22     -f -i test/raytest_modelb.oct window blinds lights lamp picture
23     WORKING_DIRECTORY ${office_dir}
24     OUTPUT_FILE test/raytest_model.oct
25     RESULT_VARIABLE res
26     )
27    
28     if(NOT ${res} EQUAL 0)
29     message(FATAL_ERROR "Bad return value from oconv, res = ${res}")
30     endif()