Skip to content

Commit

Permalink
STL-unpatched.t doesn't need to run in FreeBSD; fix MANIFEST.SKIP to …
Browse files Browse the repository at this point in the history
…not bundle .github folder
  • Loading branch information
pryrt committed Nov 25, 2021
1 parent 4dfaa73 commit b088ff1
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
Revision history for Perl distribution Win32-Mechanize-NotepadPlusPlus

v0.006001 2021-Nov-25
- Update test suite again for FreeBSD: doesn't need to cover
"STL-unpatched.t" (#13)
- Fix MANIFEST.SKIP to not bundle the .github folder in the
distribution


v0.006 2021-Nov-25
- Try to prevent FreeBSD from freezing during test suite: skip
offending tests which cover FormatSTL.pm, as that module
Expand Down
1 change: 0 additions & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.github/workflows/perl-ci.yml
CHANGES
files/cube.stl
files/cube_badfacet.stl
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

# pcj
^.svn/
^.github/
^MYMETA
^\.?travis\.yml$
^\.?appveyor\.yml$
Expand Down
2 changes: 1 addition & 1 deletion lib/CAD/Mesh3D.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use Carp;
use 5.010; # M::V::R requires 5.010, so might as well make use of the defined-or // notation :-)
use Math::Vector::Real 0.18;
use CAD::Format::STL qw//;
our $VERSION = '0.006';
our $VERSION = '0.006001';

=head1 NAME
Expand Down
2 changes: 1 addition & 1 deletion lib/CAD/Mesh3D/STL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use Carp;
use 5.010; # M::V::R requires 5.010, so might as well make use of the defined-or // notation :-)
use CAD::Format::STL qw//;
use CAD::Mesh3D qw/:create/;
our $VERSION = '0.006'; # auto-populated from CAD::Mesh3D
our $VERSION = '0.006001'; # auto-populated from CAD::Mesh3D

# start by deciding which formatter to use
our $STL_FORMATTER;
Expand Down
7 changes: 6 additions & 1 deletion t/STL-unpatched.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ use version 0.77;
use FindBin;
use lib "$FindBin::Bin/unpatched";
BEGIN {
if( $^O eq 'linux' ) { # want linux to pretend it is windows, to get full coverage of patched/unpatched
if( $^O eq 'linux' ) {
# want linux to pretend it is windows, to get full coverage of patched/unpatched
# it will _work_ on linux, but isn't required
$ENV{CAD_MESH3D_OVERRIDE_OS} = 'MSWin32';
} elsif ( $^O ne 'MSWin32' and $^O ne 'cygwin' ) {
# if it's not windows and not linux, then we don't need this
plan skip_all => 'Unpatched test not needed except on Windows';
}
}
use CAD::Mesh3D::STL;
Expand Down

0 comments on commit b088ff1

Please sign in to comment.