Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2015-02-16 01:41:36 +0300
committerAlessandro Ranellucci <aar@cpan.org>2015-02-16 01:47:35 +0300
commita07c48bb30a70970bf5eeb315bd7762dbdd45fc5 (patch)
tree71f4a859b755c63fc82dd3a69d445c1a69a078f5 /t
parentc0f453f83ee730e9e3db49466f8c8874d7c49139 (diff)
Fixed regression causing [input_filename] and [input_filename_base] not being available in custom G-code anymore. Includes regression test. #1507
Diffstat (limited to 't')
-rw-r--r--t/gcode.t10
1 files changed, 9 insertions, 1 deletions
diff --git a/t/gcode.t b/t/gcode.t
index aa15098a0..2bb18094c 100644
--- a/t/gcode.t
+++ b/t/gcode.t
@@ -1,4 +1,4 @@
-use Test::More tests => 20;
+use Test::More tests => 21;
use strict;
use warnings;
@@ -184,4 +184,12 @@ use Slic3r::Test;
}
}
+{
+ my $config = Slic3r::Config->new_from_defaults;
+ $config->set('start_gcode', 'START:[input_filename]');
+ my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
+ my $gcode = Slic3r::Test::gcode($print);
+ like $gcode, qr/START:20mm_cube/, '[input_filename] is also available in custom G-code';
+}
+
__END__