Commit 94b4978e authored by Laurent Belcour's avatar Laurent Belcour
Browse files

[CMake] Adding a new integration test

parent 67ad77d4
...@@ -125,7 +125,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins) ...@@ -125,7 +125,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins)
alta_add_plugin(data_astm data_io/astm.cpp) alta_add_plugin(data_astm data_io/astm.cpp)
alta_add_plugin(data_merl data_io/merl.cpp) alta_add_plugin(data_merl data_io/merl.cpp)
alta_add_plugin(data_utia data_io/utia.cpp) alta_add_plugin(data_utia data_io/utia.cpp)
alta_add_plugin(data_slice data_io/slice.cpp) alta_add_plugin(data_brdf_slice data_io/slice.cpp)
alta_add_plugin(data_grid data_interpolants/grid.cpp) alta_add_plugin(data_grid data_interpolants/grid.cpp)
if(FLANN_FOUND) if(FLANN_FOUND)
...@@ -222,7 +222,16 @@ if(gold-metallic-paint_FOUND) ...@@ -222,7 +222,16 @@ if(gold-metallic-paint_FOUND)
"--output" "gold-metallic-paint.alta" "--output" "gold-metallic-paint.alta"
"--in-data" "data_merl" "--in-data" "data_merl"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests") WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
set_tests_properties("data2data_gold" PROPERTIES ENVIRONMENT "ALTA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/plugins")
add_test(NAME "data2data_gold_slice"
COMMAND "data2data" "--input" "gold-metallic-paint.binary"
"--output" "gold-metallic-paint.exr"
"--in-data" "data_merl"
"--out-data" "data_brdf_slice"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
set_tests_properties("data2data_gold" "data2data_gold_slice"
PROPERTIES ENVIRONMENT "ALTA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/plugins")
endif() endif()
if(gold-metallic-paint_FOUND AND CATCH_FOUND) if(gold-metallic-paint_FOUND AND CATCH_FOUND)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment