update src and test

This commit is contained in:
QIDI TECH
2025-03-22 09:44:19 +08:00
parent b15deeb656
commit 7e7d699e43
151 changed files with 36981 additions and 1531 deletions

View File

@@ -8,7 +8,7 @@ add_executable(${_TEST_NAME}_tests
)
# mold linker for successful linking needs also to link TBB library and link it before libslic3r.
target_link_libraries(${_TEST_NAME}_tests test_common TBB::tbb TBB::tbbmalloc libslic3r_gui libslic3r)
target_link_libraries(${_TEST_NAME}_tests test_common TBB::tbb TBB::tbbmalloc libslic3r_gui libslic3r libseqarrange)
if (MSVC)
target_link_libraries(${_TEST_NAME}_tests Setupapi.lib)

View File

@@ -1,4 +1,4 @@
#include "catch2/catch.hpp"
#include "catch2/catch_test_macros.hpp"
#include "slic3r/Utils/Secrets.hpp"

View File

@@ -1,4 +1,6 @@
#include "catch2/catch.hpp"
#include <catch2/catch_test_macros.hpp>
#include <catch2/catch_template_test_macros.hpp>
#include <catch2/catch_approx.hpp>
#include "test_utils.hpp"
#include <random>
@@ -9,10 +11,13 @@
#include "slic3r/GUI/Jobs/ArrangeJob2.hpp"
#include "libslic3r/Model.hpp"
#include "libslic3r/FileReader.hpp"
#include "libslic3r/SLAPrint.hpp"
#include "libslic3r/Format/3mf.hpp"
using Catch::Approx;
class RandomArrangeSettings: public Slic3r::arr2::ArrangeSettingsView {
Slic3r::arr2::ArrangeSettingsDb::Values m_v;
@@ -84,7 +89,7 @@ TEST_CASE("Basic arrange with cube", "[arrangejob]") {
DynamicPrintConfig cfg;
cfg.load_from_ini(basepath + "default_fff.ini",
ForwardCompatibilitySubstitutionRule::Enable);
Model m = Model::read_from_file(basepath + "20mm_cube.obj", &cfg);
Model m = FileReader::load_model(basepath + "20mm_cube.obj");
UIThreadWorker w;
arr2::ArrangeSettings settings;

View File

@@ -1,4 +1,5 @@
#include "catch2/catch.hpp"
#include <catch2/catch_test_macros.hpp>
#include <catch2/catch_template_test_macros.hpp>
#include <chrono>
#include <thread>

View File

@@ -1,4 +1,4 @@
#include "catch2/catch.hpp"
#include <catch2/catch_test_macros.hpp>
#include "slic3r/Config/Version.hpp"