165 Commits

Author SHA1 Message Date
Nick Neisen
46cd5689bc Add test for layer_num value being the layer index 2019-09-22 21:48:33 -05:00
Nick Neisen
b22b1ae300 Adjust test for current_extruder being second extruder 2019-09-22 21:46:42 -05:00
Nick Neisen
9352c9d894 Add tests that initially fail 2019-09-22 21:46:42 -05:00
Joseph Lenox
bd575f15c5 Ensure rand() is available, create consistent seed. 2019-05-27 21:05:30 -05:00
Joseph Lenox
6df833dd79 Forgot to commit new test for flatten. 2019-05-27 21:05:30 -05:00
Joseph Lenox
daaceff20a Test layer heights above the old 10mm layer height limit and that the layer height is still restricted by nozzle diameter. 2019-04-13 12:28:04 -05:00
Joseph Lenox
64b0d7c709 Remove some dead code in the printgcode test. 2019-04-13 12:28:04 -05:00
Joseph Lenox
371d87ce96 Set the initial maximum size for layer heights and nozzle diameter to max
The algorithm used to adjust layer heights in PrintObject has as a ceiling some default values that were fine when nozzles were < 1.0mm but not anymore.
To avoid more surprises, set to numeric_limits<double>::max()
Adds regression test as well.
Fixes #4516
2019-04-13 12:28:04 -05:00
3bhady
536124072d fix formatting 2019-04-03 10:37:12 -05:00
3bhady
8dc4e64160 Testing 3mf reading file with umlauts in it's path 2019-04-03 10:37:12 -05:00
Joseph Lenox
ac3f4f2d03 Add test_gcode.cpp 2019-03-31 07:12:18 -05:00
Joseph Lenox
205cb02efa Restrict speed setting to fixed-point output with 3 decimal places. Includes test.
Fixes #4769
2019-03-31 07:12:18 -05:00
Florens Wasserfall
db426758ca testcase for remove_collinear_points in Polygon 2019-02-09 20:56:34 -06:00
supermerill
32b0adacd9 add some little tests to brim ears 2019-01-10 23:07:06 +01:00
Joseph Lenox
364f2a6e8c
Patch for #4620 - ensure posDetectSurfaces is invalidated on slice change (#4679)
* Update some language used 

* Completely check pre-condition in test. 

Make sure that we have 1 solid bottom layer and 2 solid top layers before invoking our change.

* Use step_invalidate() instead to ensure dependencies are invalidated as well.

Move set_started() until after invalidations.
2019-01-06 18:03:24 -06:00
Joseph Lenox
dabb5f3823 Fix skirt/Brim (#4669)
* Start implementing skirt/brim tests.

* Move skirt_height_z (representing the highest skirt height in actual Z coordinates) to Print and prime it with make_brim so it can be used in PrintGCode.

Updated test to correctly verify skirt is generated for one and multiple objects.

* Fallout from the config refactor; use correct accessors.

* Fix bug where brim was not generated (inverted logic)

* Finish porting tests, left one intentional failure as support material is not generated yet (segfaults).
2019-01-06 23:58:08 +01:00
Joseph Lenox
b3cac9d0fb
Cleanup old branch builds (#4680)
* #4620

Invalidate posDetectSurfaces during make_perimeters() when posSlice would also get invalidated.
Can't use invalidate_step() as that invalidates the perimeters as well.

* Add a test step to check for regression #4620 - behavior on running Print::process() again on the same model.

* Fix naming scheme for macos/osx builds to make it obvious if it is a PR or not.

* Remove previous versions of the same kind of branch or PR ID

* Adjust copied statements to account for different calling conventions; osx does not have an arch name argument for make_dmg

* Remember to set the version too

* Update windows build server command to clean up old branch builds.

* Specifically look for PR${PR_ID} instead of just ${PR_ID} to avoid unintentional deletions.

* don't symlink pull requests

* Update to call more functions on osx

* Only delete/clean once, not once per file uploaded.
2019-01-06 13:53:41 -06:00
Joseph Lenox
190de64396
Permit coBool options to be set with booleans; added an additional type enforcement for setting it with a string (only accepts "1" and "0"). (#4668) 2019-01-01 19:42:26 -06:00
Joseph Lenox
8e5a9cba71 #4654 Add a check for a 0 from the math to calculate the spacing; added a regression test to ensure that the spacing can't be 0 with otherwise valid inputs. 2018-12-31 10:49:30 -06:00
Joseph Lenox
dd38214884 Apply suggestions from code review
Co-Authored-By: alranel <aar@cpan.org>
2018-12-29 23:49:08 -06:00
Alessandro Ranellucci
79d0677db2 Refactoring: make Slic3r::Config a thin wrapper around Slic3r::DynamicPrintConfig by moving its accessors to Slic3r::ConfigBase 2018-12-29 23:49:08 -06:00
Alessandro Ranellucci
aac9c2481c Ported PrintObject::infill() to C++ 2018-11-26 21:24:33 +01:00
Joseph Lenox
5d7711f319 Avoid locking in 0,0 for minimum x/y 2018-11-25 11:55:57 -06:00
Alessandro Ranellucci
73f3bfb0da Fix test according to the wanted behavior for --export-sla-svg 2018-11-25 11:55:57 -06:00
Joseph Lenox
76c23fa966 Math is hard. 2018-11-25 11:55:57 -06:00
Joseph Lenox
afc90ed91e Test --dont-arrange and --center. 2018-11-25 11:55:57 -06:00
Joseph Lenox
6fcf4195e1 Fix endline whitespace. 2018-11-25 11:55:57 -06:00
Joseph Lenox
63b74b8cc2 Remove extraneous options in 20mm box config. 2018-11-25 11:55:57 -06:00
Joseph Lenox
0218bd34ac added 20mm box stl test file 2018-11-25 11:55:57 -06:00
Joseph Lenox
c2befe68ff Add exported config for 20mm box tests. 2018-11-25 11:55:57 -06:00
Joseph Lenox
ff1d0de988 Test for default SVG file naming behavior as specified in 382ceed584/src/advanced/command-line.md 2018-11-25 11:55:57 -06:00
Joseph Lenox
add7e2c369 Add basic export option tests to cppcli. 2018-11-25 11:55:57 -06:00
Joseph Lenox
d12885d042 use boost::locale instead of corecvt. 2018-11-24 14:47:26 -06:00
Joseph Lenox
02fd5b9de7 Revert "Revert "Expanding Slic3r::Log""
This reverts commit cf933c62d575d3d147d6bc869c9e3e354b81df17.
2018-11-24 14:47:26 -06:00
Alessandro Ranellucci
cf933c62d5
Revert "Expanding Slic3r::Log" 2018-11-23 19:59:13 +01:00
Joseph Lenox
37f4497450 Allow for filtering additionally on topic name. 2018-11-22 23:31:13 -06:00
Joseph Lenox
86c776287e Implemented debug level filtering. 2018-11-22 22:53:11 -06:00
Joseph Lenox
0ccb9b046e starting to enhance Slic3r::Log; adding tests. 2018-11-22 20:33:19 -06:00
Joseph Lenox
b736711a7b Renamed sample_compatible to be more descriptive of what it is
(an incompatible preset group that forces a reversion to - default -
2018-11-18 19:02:56 -06:00
Joseph Lenox
e234a3b208 Added test to catch regression where input list would be clobbered during filtering. 2018-11-18 19:02:56 -06:00
Joseph Lenox
34c22403e1 remove debug print in test. 2018-11-18 19:02:56 -06:00
Joseph Lenox
5f8075585c Move the incompatible to the file for consistency. 2018-11-18 19:02:56 -06:00
Joseph Lenox
7a048c3f70 Convert Print& to weak_ptr; Settings& to Settings*. 2018-11-18 19:02:56 -06:00
Joseph Lenox
88b4c54fc4 Ensure that the settings store gets updated. 2018-11-18 19:02:56 -06:00
Joseph Lenox
3ab1ce27e5 Add tests to cover preset chooser behavior. 2018-11-18 19:02:56 -06:00
Joseph Lenox
870d8742a8 Removed ConfigOptionVectors::append, manipulate values directly. 2018-11-18 19:02:56 -06:00
Joseph Lenox
c369c8916a refactor test to ensure that the test actually performs select by name on load. 2018-11-18 19:02:56 -06:00
Joseph Lenox
230754cbbd Refactor test to associate presets on cut creation. 2018-11-18 19:02:56 -06:00
Joseph Lenox
cfcf569a5e Implementing tests for PresetChooser, covering basic construction of the object and load(). 2018-11-18 19:02:56 -06:00
Joseph Lenox
569bb43a1a Use options that are actually in the config, not ones you think might be in there. 2018-11-18 19:02:56 -06:00