Lines Matching full:output
5 # The snippet tests are designed to keep the output fairly stable, but there
6 # are a few tests that use complete output with some customization. This
8 # podlators. The output can then be reviewed with normal Git tools.
38 # Map of translators to the file containing the formatted output for the
41 my %output = (
50 # Regenerate those output files.
52 for my $module (keys(%output)) {
56 my $output;
57 $parser->output_string(\$output);
64 $output =~ s{ \A .* \n [.]nh \n }{}xms;
67 # Overwrite the output.
68 open(my $fh, '>', $output{$module})
69 or die "cannot create $output{$module}: $!\n";
70 print {$fh} $output
71 or die "cannot write to $output{$module}: $!\n";
73 or die "cannot write to $output{$module}: $!\n";
79 %output = (
86 # For each encoding, load the input, generate the output, and check that the
87 # output matches.
88 for my $encoding (keys(%output)) {
94 my $output;
95 $parser->output_string(\$output);
99 $output =~ s{ ^ [^\n]+ Automatically [ ] generated [ ] by [^\n]+ \n }{}xms;
101 # Overwrite the output.
102 open(my $fh, '>', $output{$encoding})
103 or die "cannot create $output{$encoding}: $!\n";
104 print {$fh} $output
105 or die "cannot write to $output{$encoding}: $!\n";
107 or die "cannot write to $output{$encoding}: $!\n";