Skip to content

Commit

Permalink
Fix load macros test for PGplot helper macros.
Browse files Browse the repository at this point in the history
  These macros are not meant to be loaded directly and are part
  of the PGplot.pl macro. This adds them to the borkenMacros
  hash to avoid being loaded during the test.
  • Loading branch information
somiaj committed Nov 29, 2023
1 parent b55c744 commit 6df78c9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion t/macros/load_macros.t
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,17 @@ my %baseMacros = (
);

# PG_CAPAmacros.pl is not really broken, but it depends on files that are in the OPL and not in the PG repository.
my %brokenMacros = ('answerDiscussion.pl' => 1, 'PG_CAPAmacros.pl' => 1);
# PGplot helper macros Axes.pl, GD.pl, Tikz.pl, and Data.pl are not really broken, but shouldn't be loaded directly.
# PGplotmacros.pl overrides some default WWplot objects. Loading this causes other test to fail.
my %brokenMacros = (
'answerDiscussion.pl' => 1,
'PG_CAPAmacros.pl' => 1,
'Axes.pl' => 1,
'GD.pl' => 1,
'Tikz.pl' => 1,
'Data.pl' => 1,
'PGplotmacros.pl' => 1,
);

# Find all macro files inside the $ENV{PG_ROOT}/macros directory.
my @macro_files;
Expand Down

0 comments on commit 6df78c9

Please sign in to comment.