Commit 47129b2b authored by Laurent Belcour's avatar Laurent Belcour

[Tests] Removing the MERL dependent tests

parent 023dc282
......@@ -274,125 +274,6 @@ add_test(NAME "data2stats_kirby"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
# Integration tests using MERL data
#
alta_download_merl("gold-metallic-paint")
if(NOT gold-metallic-paint_FOUND)
message("Error checking for gold-metallic-paint.binary but not found")
endif()
if(gold-metallic-paint_FOUND)
# Converting back an forth between MERL format and BRDF Slice format
# At the end of this batch, there should be multiple file of the same
# view of the gold metallic paint.
#
add_test(NAME "data2data_gold_slice_stark"
COMMAND "data2data" "--input" "gold-metallic-paint.binary"
"--output" "gold-metallic-paint-stark.exr"
"--in-data" "data_merl"
"--out-data" "data_brdf_slice"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
add_test(NAME "data2data_gold_slice_merl"
COMMAND "data2data" "--input" "gold-metallic-paint-stark.exr"
"--output" "gold-metallic-paint-2.binary"
"--in-data" "data_brdf_slice"
"--out-data" "data_merl"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
add_test(NAME "data2data_gold_slice_rusin_1"
COMMAND "data2data" "--input" "gold-metallic-paint.binary"
"--output" "gold-metallic-paint-rusin-1.exr"
"--in-data" "data_merl"
"--param" "RUSIN_TH_TD"
"--out-data" "data_brdf_slice"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
add_test(NAME "data2data_gold_alta_rusin_1"
COMMAND "data2data" "--input" "gold-metallic-paint-rusin-1.exr"
"--output" "gold-metallic-paint-rusin-1.alta"
"--in-data" "data_brdf_slice"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
add_test(NAME "data2data_gold_slice_rusin_2"
COMMAND "data2data" "--input" "gold-metallic-paint.binary"
"--output" "gold-metallic-paint-rusin-2.exr"
"--in-data" "data_merl"
"--param" "RUSIN_TH_TD_PD"
"--angle" "90"
"--out-data" "data_brdf_slice"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
# Remove zeros from the BRDF slice plugin
#
add_test(NAME "data2data_gold_remove_zeros"
COMMAND "data2data" "--input" "gold-metallic-paint-stark.exr"
"--output" "gold-metallic-paint-stark.alta"
"--in-data" "data_brdf_slice"
"--ymin" "[0.001, 0.001, 0.001]"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
set_tests_properties("data2data_gold_slice_stark"
"data2data_gold_remove_zeros"
"data2data_gold_slice_merl"
"data2data_gold_slice_rusin_1"
"data2data_gold_alta_rusin_1"
"data2data_gold_slice_rusin_2"
PROPERTIES ENVIRONMENT "ALTA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/plugins")
# Test all the rational fitters on the gold metallic data
# At the end of this pass, there should be one ALTA function file per fitter
#
foreach(fitter IN ITEMS eigen leastsquare quadprog parallel)
add_test(NAME "data2dbrdf_gold_rf_${fitter}"
COMMAND "data2brdf" "--output" "gold-metallic-paint-rf-${fitter}.func"
"--input" "gold-metallic-paint-rusin-1.alta"
"--fitter" "rational_fitter_${fitter}"
"--min-np" "100"
"--np" "100"
"--nq" "50"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
set_tests_properties("data2dbrdf_gold_rf_${fitter}"
PROPERTIES ENVIRONMENT "ALTA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/plugins")
add_test(NAME "brdf2data_gold_rf_${fitter}"
COMMAND "brdf2data" "--input" "gold-metallic-paint-rf-${fitter}.func"
"--output" "gold-metallic-paint-${fitter}.exr"
"--data" "data_brdf_slice"
"--data-file" "gold-metallic-paint-rusin-1.exr"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
set_tests_properties("brdf2data_gold_rf_${fitter}"
PROPERTIES ENVIRONMENT "ALTA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/plugins")
endforeach()
# Test all the nonlinear fitters on the gold metallic data
# At the end of this pass, there should be one ALTA function file per fitter
#
foreach(fitter IN ITEMS eigen ceres nlopt)
add_test(NAME "data2dbrdf_gold_${fitter}"
COMMAND "data2brdf" "--input" "gold-metallic-paint-stark.alta"
"--output" "gold-metallic-paint-${fitter}.func"
"--fitter" "nonlinear_fitter_${fitter}"
"--func" "[nonlinear_function_diffuse, nonlinear_function_blinn]"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
set_tests_properties("data2dbrdf_gold_${fitter}"
PROPERTIES ENVIRONMENT "ALTA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/plugins")
endforeach()
endif()
if(gold-metallic-paint_FOUND AND CATCH_FOUND)
alta_test_unit(conversion-catch-1 core/conversion-catch-1.cpp )
endif()
# add a target to generate API documentation with Doxygen
if(DOXYGEN_FOUND)
add_custom_target(doc
......
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