Fix sla archive tests
This commit is contained in:
parent
b8718f4601
commit
4f2772fef4
@ -8,5 +8,9 @@ add_executable(${_TEST_NAME}_tests ${_TEST_NAME}_tests_main.cpp
|
|||||||
target_link_libraries(${_TEST_NAME}_tests test_common libslic3r)
|
target_link_libraries(${_TEST_NAME}_tests test_common libslic3r)
|
||||||
set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
|
set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
prusaslicer_copy_dlls(${_TEST_NAME}_tests)
|
||||||
|
endif()
|
||||||
|
|
||||||
# catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
|
# catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")
|
||||||
add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})
|
add_test(${_TEST_NAME}_tests ${_TEST_NAME}_tests ${CATCH_EXTRA_ARGS})
|
||||||
|
@ -19,6 +19,8 @@ TEST_CASE("Archive export test", "[sla_archives]") {
|
|||||||
auto m = Model::read_from_file(TEST_DATA_DIR PATH_SEPARATOR + std::string(PNAME) + ".obj", nullptr);
|
auto m = Model::read_from_file(TEST_DATA_DIR PATH_SEPARATOR + std::string(PNAME) + ".obj", nullptr);
|
||||||
|
|
||||||
fullcfg.set("sla_archive_format", archname);
|
fullcfg.set("sla_archive_format", archname);
|
||||||
|
fullcfg.set("supports_enable", false);
|
||||||
|
fullcfg.set("pad_enable", false);
|
||||||
|
|
||||||
DynamicPrintConfig cfg;
|
DynamicPrintConfig cfg;
|
||||||
cfg.apply(fullcfg);
|
cfg.apply(fullcfg);
|
||||||
|
Loading…
Reference in New Issue
Block a user