PrusaSlicer-NonPlainar/tests/fff_print
Vojtech Bubnik 0f3cabb5d9 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.

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:57:05 +02:00
..
CMakeLists.txt Fixed unit tests on Windows after introduction of GMP to 2020-06-27 08:44:13 +02:00
fff_print_tests.cpp Useful verbose test output on console with Catch2 2019-10-30 10:48:47 +01:00
test_data.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:57:05 +02:00
test_data.hpp
test_extrusion_entity.cpp
test_fill.cpp Fixing unit tests. 2021-05-05 13:19:01 +02:00
test_flow.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:57:05 +02:00
test_gcode.cpp
test_gcodewriter.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:57:05 +02:00
test_model.cpp ENABLE_GCODE_VIEWER set as default in fff_print test and PrusaSlicer.cpp 2020-11-12 15:01:59 +01:00
test_print.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:57:05 +02:00
test_printgcode.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:57:05 +02:00
test_printobject.cpp Squash merge of lh_brim_rework, 2021-02-03 15:12:53 +01:00
test_skirt_brim.cpp Support for forward compatibility of configurations, user and system 2021-06-27 16:57:05 +02:00
test_support_material.cpp Fixed unit tests. 2021-04-21 13:30:32 +02:00
test_trianglemesh.cpp TriangleMeshSlicer: Got rid of admesh! 2021-05-18 15:05:30 +02:00