Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed tests under OpenBSD #11

Closed
wants to merge 67 commits into from
Closed

Conversation

glasswalk3r
Copy link

Added some code to check for OpenBSD tar, which is not quite compatible to the command line options passed by this module (not considering that gtar is installed). Those fixes will make Archive::Tar::Wrapper available to OpenBSD (currently is failing on all reports from CPAN Testers).
Also made the method is_gnu() more robust, testing the return code and properly handling STDOUT and STDERR when trying tar --version.
Also made some small refactoring, adding note() on tests were appropriated.
Dependencies added are those already available on standard perl (Config and IPC::Open3).

Alceu Rodrigues de Freitas Junior and others added 30 commits March 5, 2018 19:00
Added some code to check for OpenBSD tar, which is not quite compatible to the command line options passed by this module.
Also made the method is_gnu() more robust, testing the return code and properly handling STDOUT and STDERR when trying "tar --version".
Dependencies added are those already available on standard perl (Config and IPC::Open3).
Added a LICENSE file (GNU GPL v3).
Removed MYMETA files (see https://rt.cpan.org/Ticket/Display.html?id=108171).
Improved Kwalitee by adding information to Makefile.PL
Added a README.md for better formatting in Github project page.
Small refactorings and code formating with perltidy.
Re-aligned the comments with the code.
Fixed other formating issues.
Tidied code in the method read().
mohammad.anwar@yahoo.com proposed some changes that were applied in PR
Both were applied, but #2 broke the tests. Need to find out why because
it shouldn't.
Removed the version from README file (too much work to maintain it there).
Bumped the distribution version.
Implemented refactoring due warnings from Perlcritic.
Did some more refactorings based on perlcritic evaluation.
Increased distro version.
Fixed all warnings but one.
Small refactorings to increase performance was well.
Enhanced error messages.
Using File::Spec on t/001Basic.t to concatenate directories and files in a portable way.
Replacing double quotes with single quotes wherever it is possible.
Rolled back change to list_reset method to write to a file per result of File::Find::find.
Doing chomp() in the proper place inside the list_next method.
Replaced global variable $TARDIR with a constant an removed the unnecessary -d test.
Different versions of perl don't have the same return of readdir(): in
some version the list of items in the dir as sorted, in some not.
Added some performance measurement for the changes implemented.
From reading the directory content, checking different algorithms to
remove the '.' and '..' and measuring the performance of each one.
Clarified license, see #5.
Evaluating debug messages with Log::Log4perl only when debug level is active.
Evaluating tests with is_deeply from Test::More.
Enhanced Makefile.PL to evaluate if TEST_REQUIRES can be used or not, see #6.
Added support for Microsoft Windows 10 and later.
Skipping tests that will not be supported.
Checking during execution of Makefile.PL that tar program is available,
and aborting with "NA" if not.
Updated the documentation related.
Using Win32::GetOSVersion is tricky and probablying not supporting newer
version after Windows Server 2012.

Relying that anything with major version equal or higher from 6 should
be supported by Microsoft and this distribution.
Not handling properly File::Which which() results when running on MS
Windows, fixed that.
Go back adding Changes entries per release, and using git tags with it.
Those tests will help to validate the best option to improve
write() method performance on different platforms and perl versions.
The tests were written to pass anyway, unless something goes terrible
wrong.
Alceu Rodrigues de Freitas Junior and others added 29 commits July 3, 2018 10:41
Fixed bug introduced in Makefile.PL due changes of release 0.30 (thanks to David Cantrell <david@cantrell.org.uk>).
Fixed minor typo in the pod.
Typo fixed by Mohammad S Anwar (#10).
Refactored performance tests, and now they will run as TODO to test the hypotesis that there is a better algorithm to write() method.
Skipping bzip2 testing if the program is not available
(#11).
Undeclared dependency of Dumbbench
(#12).
Fix typo: similarily → similarly.
Covered method that didn't have Pod.
Refactored all Pod following best practices.
Refactored a single method to be "private".
Slightly changed new() to enable unit testing for OS specific configurations.
Increased test coverage.
Refactored code to make it easier for testing.
Disabled performance-small.t for now.
Refactored bzip2 tests.
Added _rem_dots method, a improved way to remove '.' and '..' from readdir(), supposed to be faster than previous implementation with sort() and shift().
Added two more tests to increase testing coverage.
Fixed a small bug regarding Pod, that now covers 100% of the code.
Increased the release.
Added CONTRIBUTING.md to allow MetaCPAN to show it.
Small changes to documentation.
This reverts commit 408ff56.
The unit test for OpenBSD will not run properly, restricted the test to run now only with OpenBSD.
Fixed bad formatted Pod.
There is not way to get tar version from the standard tar program on OpenBSD.
Fixed tests on Microsoft Windows.
Created initial tests to validate on OpenBSD.
@glasswalk3r glasswalk3r closed this May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants