Files
OrcaSlicer/tests/fff_print/CMakeLists.txt
Gazi Faysal Jubayer 4b68224ff4 Use the assigned filament's settings in the PA Line calibration test (#16882)
The PA Line test took its speed limit, line width and extrusion from filament 0, whatever filament the test was assigned to. On any other AMS slot or filament, the test printed with the wrong speeds and the wrong extrusion (#16530).

The test now uses the filament the G-code generator has selected for it:
- the fast lines are capped by that filament's max volumetric speed;
- the line width uses the nozzle diameter of that filament's extruder;
- the lines and the number box use Extruder::e_per_mm() times print_flow_ratio, like a regular print.

With one filament whose flow ratio is not 1, the PA lines now use that flow ratio too. PA Pattern output is unchanged.

Adds a regression test that checks the PA line feedrate and extrusion for a test assigned to the second of two different filaments.
2026-10-28 09:57:43 -05:00

53 lines
1.4 KiB
CMake

get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
add_executable(${_TEST_NAME}_tests
${_TEST_NAME}_tests.cpp
test_helpers.cpp
test_helpers.hpp
test_adaptive_pressure_advance.cpp
test_calib.cpp
test_cooling.cpp
test_extrusion_entity.cpp
test_extrusion_processor.cpp
test_exclusion_volumes.cpp
test_fan_mover.cpp
test_fill.cpp
test_flow.cpp
test_gcode_processor.cpp
test_gcode_statistics.cpp
test_gcode_timing.cpp
test_gcode.cpp
test_gcodeprocessor.cpp
test_gcodewriter.cpp
test_imex_mode_gcode.cpp
test_imex_slice_offset.cpp
test_model.cpp
test_multifilament.cpp
test_multimaterial_segmentation.cpp
test_perimeters.cpp
# Seam geometry and pipeline regressions share the existing Print fixtures.
test_precise_seam.cpp
test_print.cpp
test_printobject.cpp
test_mixed_filament.cpp
test_seam_placer.cpp
test_skirt_brim.cpp
test_slicing_pipeline_hook.cpp
test_spiral_vase.cpp
test_support_material.cpp
test_texture_displacement.cpp
test_tree_support.cpp
test_trianglemesh.cpp
test_wipe.cpp
test_wipe_tower.cpp
)
target_link_libraries(${_TEST_NAME}_tests test_common libslic3r Catch2::Catch2WithMain)
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
add_precompiled_header(${_TEST_NAME}_tests ${CMAKE_SOURCE_DIR}/src/libslic3r/pchheader.hpp FORCEINCLUDE)
endif ()
set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
orcaslicer_copy_test_dlls()
orcaslicer_discover_tests(${_TEST_NAME}_tests)