We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48225a6 + bdae84d commit a1b42e5Copy full SHA for a1b42e5
t/lib/Tools.pm
@@ -27,6 +27,16 @@ sub compare_pdf {
27
my $pb_version = version->parse($PDF::Builder::VERSION);
28
my $file = catfile($dir, 'out.pdf');
29
30
+ # To (re) generate the expected sample files, run:
31
+ # GENERATE=1 make test
32
+ if ($ENV{GENERATE}) {
33
+ mkdir "sample/$pb_version";
34
+ open my $out, '>', "sample/$pb_version/$expected_file" or die;
35
+ binmode $out;
36
+ print $out $content;
37
+ close $out;
38
+ }
39
+
40
open my $out, '>', $file;
41
binmode $out;
42
print $out $content;
0 commit comments