ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/resources/cmake_tests/CMakeLists.txt
(Generate patch)

Comparing resources/cmake_tests/CMakeLists.txt (file contents):
Revision 1.2 by greg, Mon Jan 8 16:51:31 2018 UTC vs.
Revision 1.4 by greg, Thu Jul 24 01:24:01 2025 UTC

# Line 1 | Line 1
1 + # RCSid $Id$
2 +
3   include(FindPerl)
4  
5   set(resources_dir "${CMAKE_SOURCE_DIR}/resources")
6 + set(rad_test_dir "${CMAKE_SOURCE_DIR}/test")
7  
8 + ### CONFIGURE TESTS
9 +
10   configure_file(setup_paths.cmake.in setup_paths.cmake @ONLY)
11   # configure these files so that they will be in the binary
12   # directory.  This will allow them to include setup_paths.cmake
# Line 10 | Line 15 | configure_file(setup_paths.cmake.in setup_paths.cmake
15   configure_file(test_setup.cmake test_setup.cmake COPYONLY)
16   configure_file(test_rtrace.cmake test_rtrace.cmake COPYONLY)
17   configure_file(test_rpict.cmake test_rpict.cmake COPYONLY)
13 configure_file(test_getinfo.cmake test_getinfo.cmake COPYONLY)
18   configure_file(test_pcond.cmake test_pcond.cmake COPYONLY)
19   configure_file(test_falsecolor.cmake test_falsecolor.cmake COPYONLY)
20   configure_file(test_DC.cmake test_DC.cmake COPYONLY)
21   configure_file(test_evalglare.cmake test_evalglare.cmake COPYONLY)
22  
23 + ### ADD TESTS
24 +
25   add_test(test_setup ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_setup.cmake)
26  
27   add_test(test_rtrace ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_rtrace.cmake)
# Line 30 | Line 36 | set_tests_properties(test_rpict PROPERTIES
36    FAIL_REGULAR_EXPRESSION "failed"
37   )
38  
33 add_test(test_getinfo ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_getinfo.cmake)
34
39   add_test(test_pcond ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_pcond.cmake)
40   set_tests_properties(test_pcond PROPERTIES
41    PASS_REGULAR_EXPRESSION "passed"
# Line 43 | Line 47 | set_tests_properties(test_evalglare PROPERTIES
47    PASS_REGULAR_EXPRESSION "passed"
48    FAIL_REGULAR_EXPRESSION "failed"
49   )
50 +
51  
52   if(PERL_FOUND)
53    add_test(test_falsecolor ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test_falsecolor.cmake)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines