mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-30 23:48:44 +03:00
update src and test
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "catch2/catch.hpp"
|
||||
#include "catch2/catch_test_macros.hpp"
|
||||
|
||||
#include "slic3r/Utils/Secrets.hpp"
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "catch2/catch.hpp"
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
#include "slic3r/Config/Version.hpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user