WIP: Automatic update to Test-Unit-0.28.tar.gz #1

Draft
cpanmirror wants to merge 1 commits from cpanmirror/perl-Test-Unit:autoupdate into main
4 changed files with 33 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:12846b34fb54e2e782b06261127eb504b26bc5de730ff7a09796a9990517293a
size 325133

BIN
Test-Unit-0.29.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Tue Dec 9 05:38:20 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- updated to 0.290.0 (0.29)
see /usr/share/doc/packages/perl-Test-Unit/ChangeLog
2025-12-09 Ricardo Signes <cpan@semiotic.systems>
* lib/Test/Unit.pm: version 0.29
* some cleanup of text of the code (whitespace, etc)
* update for 5.6 basics: use warnings, our $VAR
* MAJOR bug fix: Previously, non-Error-based exceptions could be lost during
test runs, causing tests to appear to pass, when they has only terminated
early. If the test worker was required for any subsequent test, it would
fail, but if no other test would run afterward, the problem could be
undetected.
2025-12-02 Ricardo Signes <cpan@semiotic.systems>
* lib/Test/Unit.pm: version 0.28
* replace tabs with spaces in a bunch of places
* no functional changes
-------------------------------------------------------------------
Mon Jul 1 14:26:49 UTC 2024 - Tina Müller <tina.mueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-Unit
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,10 +18,10 @@
%define cpan_name Test-Unit
Name: perl-Test-Unit
Version: 0.270.0
Version: 0.290.0
Release: 0
# 0.27 -> normalize -> 0.270.0
%define cpan_version 0.27
# 0.29 -> normalize -> 0.290.0
%define cpan_version 0.29
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: The PerlUnit testing framework
URL: https://metacpan.org/release/%{cpan_name}
@@ -36,6 +36,7 @@ BuildRequires: perl(Error)
Requires: perl(Class::Inner)
Requires: perl(Devel::Symdump)
Requires: perl(Error)
Provides: perl(Experimental::Sample)
Provides: perl(Test::Unit) = %{version}
Provides: perl(Test::Unit::Assert)
Provides: perl(Test::Unit::Assertion)
@@ -62,11 +63,13 @@ Provides: perl(Test::Unit::TestRunner)
Provides: perl(Test::Unit::TestSuite)
Provides: perl(Test::Unit::TkTestRunner)
Provides: perl(Test::Unit::Tutorial)
Provides: perl(Test::Unit::UnitHarness) = 1.1502
Provides: perl(Test::Unit::UnitHarness) = 1.150.200
Provides: perl(Test::Unit::UnitHarness::Exception)
Provides: perl(Test::Unit::UnitHarness::TestCase)
Provides: perl(Test::Unit::Warning)
Provides: perl(Tk::ArrayBar)
Provides: perl(fail_example)
Provides: perl(fail_example_testsuite_setup)
Review

Those lines are wrong. They are coming from https://metacpan.org/release/RJBS/Test-Unit-0.29/source/examples/fail_example.pm
The module doesn't list the example dir in no_index:
https://metacpan.org/release/RJBS/Test-Unit-0.29/source/META.json#L16

Those lines are wrong. They are coming from https://metacpan.org/release/RJBS/Test-Unit-0.29/source/examples/fail_example.pm The module doesn't list the `example` dir in `no_index`: https://metacpan.org/release/RJBS/Test-Unit-0.29/source/META.json#L16
Review

Asked on IRC. ilmari found that PAUSE has a default ignore list:
https://github.com/andk/pause/blob/master/lib/PAUSE/dist.pm#L782-L789

next if $inmf =~ m!^(?:x?t|inc|local|perl5|fatlib|examples?|ex|eg|demo)/!;

I will use that in cpanspec as well

Asked on IRC. ilmari found that PAUSE has a default ignore list: https://github.com/andk/pause/blob/master/lib/PAUSE/dist.pm#L782-L789 ``` next if $inmf =~ m!^(?:x?t|inc|local|perl5|fatlib|examples?|ex|eg|demo)/!; ``` I will use that in cpanspec as well
%undefine __perllib_provides
%{perl_requires}
@@ -79,13 +82,13 @@ Test::Unit::TestCase and Test::Unit::TestSuite. (There will also eventually
be a tutorial in Test::Unit::Tutorial.
However 'Test::Unit::Procedural' is the procedural style interface to a
sophisticated unit testing framework for Perl that . Test::Unit is intended
sophisticated unit testing framework for Perl that. Test::Unit is intended
to provide a simpler interface to the framework that is more suitable for
use in a scripting style environment. Therefore, Test::Unit does not
provide much support for an object-oriented approach to unit testing.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor