PrusaSlicer-NonPlainar/tests/libslic3r
Vojtech Bubnik 84b28a25e8 Support for forward compatibility of configurations, user and system
config bundles, project files (3MFs, AMFs). When loading these files,
the caller may decide whether to substitute some of the configuration
values the current PrusaSlicer version does not understand with
some reasonable default value, and whether to report it. If substitution
is disabled, an exception is being thrown as before this commit.
If substitution is enabled, list of substitutions is returned by the
API to be presented to the user. This allows us to introduce for example
new firmware flavor key in PrusaSlicer 2.4 while letting PrusaSlicer
2.3.2 to fall back to some default and to report it to the user.

As a preparation for PrusaSlicer 2.4.0, the new firmware_flavor
"marlinfirmware" (signifying Marlin 2.0 and newer) that is not
supported by 2.3.2 yet will default to "marlin" (signifying legacy
Marlin).

When slicing from command line, substutions are performed by default
and reported into the console, however substitutions may be either
disabled or made silent with the new "config-compatibility" command
line option.

Substitute enums and bools only.  Allow booleans to be parsed as
    true: "1", "enabled", "on" case insensitive
    false: "0", "disabled", "off" case insensitive
This will allow us in the future for example to switch the draft_shield
boolean to an enum with the following values: "disabled" / "enabled" / "limited".

Added "enum_bitmask.hpp" - support for type safe sets of options.
See for example PresetBundle::load_configbundle(...
LoadConfigBundleAttributes flags) for an example of intended usage.

WIP: GUI for reporting the list of config substitutions needs to be
implemented by @YuSanka.
2021-06-27 16:14:16 +02:00
..
CMakeLists.txt fixing optimizer and concurrency::reduce 2020-09-10 14:03:30 +02:00
libslic3r_tests.cpp
test_3mf.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:14:16 +02:00
test_aabbindirect.cpp WIP AABBIndirect: Documentation, polishing. 2020-05-22 09:29:21 +02:00
test_clipper_offset.cpp 64bit coord_t 2020-03-25 14:35:41 +01:00
test_clipper_utils.cpp 64bit coord_t 2020-03-25 14:35:41 +01:00
test_config.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:14:16 +02:00
test_elephant_foot_compensation.cpp 64bit coord_t 2020-03-25 14:35:41 +01:00
test_geometry.cpp 1) Implemented anchoring of infill lines to perimeters with length 2020-11-05 17:32:40 +01:00
test_hollowing.cpp
test_marchingsquares.cpp suppress unnecessary test output in release mode 2020-04-28 21:11:54 +02:00
test_meshboolean.cpp Handle CGAL exceptions and add tests for mesh boolean operations 2020-02-05 17:40:05 +01:00
test_meshsimplify.cpp
test_optimizers.cpp fixing optimizer and concurrency::reduce 2020-09-10 14:03:30 +02:00
test_placeholder_parser.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:14:16 +02:00
test_png_io.cpp Added functions to export raw image data to PNG for debugging purposes. 2020-11-26 09:01:44 +01:00
test_polygon.cpp
test_stl.cpp
test_timeutils.cpp Added test for libcurl https handling disabled on build server. 2020-03-06 15:18:14 +01:00
test_voronoi.cpp Fixed unit tests broken with 3502f256fa 2020-10-29 12:39:03 +01:00