#4 F33: 0.000140 bump and package tests
Merged 2 years ago by mspacek. Opened 2 years ago by mspacek.
rpms/ mspacek/perl-Test2-Suite f33  into  f33

file added
+1
@@ -0,0 +1,1 @@ 

+ 1

file modified
+1
@@ -59,3 +59,4 @@ 

  /Test2-Suite-0.000136.tar.gz

  /Test2-Suite-0.000138.tar.gz

  /Test2-Suite-0.000139.tar.gz

+ /Test2-Suite-0.000140.tar.gz

@@ -0,0 +1,620 @@ 

+ diff -ru Test2-Suite-0.000140.orig/t/acceptance/Workflow-Acceptance.t Test2-Suite-0.000140/t/acceptance/Workflow-Acceptance.t

+ --- Test2-Suite-0.000140.orig/t/acceptance/Workflow-Acceptance.t	2021-05-12 17:08:19.000000000 +0200

+ +++ Test2-Suite-0.000140/t/acceptance/Workflow-Acceptance.t	2021-06-16 10:17:17.363699501 +0200

+ @@ -171,7 +171,7 @@

+              call effective_pass => 1;

+  

+              prop file => match qr{\QAcceptance.t\E$};

+ -            prop line => 77;

+ +            prop line => 78;

+  

+              call subevents => array {

+                  event Ok => sub {

+ @@ -180,7 +180,7 @@

+                      call effective_pass => 1;

+  

+                      prop file => match qr{\QAcceptance.t\E$};

+ -                    prop line => 12;

+ +                    prop line => 13;

+                  };

+  

+                  event Ok => sub {

+ @@ -189,7 +189,7 @@

+                      call effective_pass => 1;

+  

+                      prop file => match qr{\QAcceptance.t\E$};

+ -                    prop line => 16;

+ +                    prop line => 17;

+                  };

+  

+                  event Subtest => sub {

+ @@ -198,7 +198,7 @@

+                      call effective_pass => 1;

+  

+                      prop file => match qr{\QAcceptance.t\E$};

+ -                    prop line => 34;

+ +                    prop line => 35;

+  

+                      call subevents => array {

+                          event Ok => sub {

+ @@ -207,7 +207,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 37;

+ +                            prop line => 38;

+                          };

+  

+                          event Ok => sub {

+ @@ -216,7 +216,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 40;

+ +                            prop line => 41;

+                          };

+  

+                          event Ok => sub {

+ @@ -225,7 +225,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 34;

+ +                            prop line => 35;

+                          };

+  

+                          event Skip => sub {

+ @@ -235,7 +235,7 @@

+                              call reason         => 'No isolation method available';

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 48;

+ +                            prop line => 49;

+                          };

+  

+                          event Subtest => sub {

+ @@ -244,7 +244,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 52;

+ +                            prop line => 53;

+  

+                              call subevents => array {

+                                  event Ok => sub {

+ @@ -253,7 +253,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 23;

+ +                                    prop line => 24;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -262,7 +262,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 27;

+ +                                    prop line => 28;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -271,7 +271,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 51;

+ +                                    prop line => 52;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -280,7 +280,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 29;

+ +                                    prop line => 30;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -289,14 +289,14 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 32;

+ +                                    prop line => 33;

+                                  };

+  

+                                  event Plan => sub {

+                                      call max => 5;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 52;

+ +                                    prop line => 53;

+                                  };

+                                  end();

+                              };

+ @@ -308,7 +308,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 57;

+ +                            prop line => 58;

+  

+                              call subevents => array {

+                                  event Ok => sub {

+ @@ -317,7 +317,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 23;

+ +                                    prop line => 24;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -326,7 +326,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 27;

+ +                                    prop line => 28;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -336,14 +336,14 @@

+                                      call todo           => 'foo todo';

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 56;

+ +                                    prop line => 57;

+                                  };

+  

+                                  event Note => sub {

+                                      call message => match qr{^\n?Failed test};

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 56;

+ +                                    prop line => 57;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -352,7 +352,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 29;

+ +                                    prop line => 30;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -361,14 +361,14 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 32;

+ +                                    prop line => 33;

+                                  };

+  

+                                  event Plan => sub {

+                                      call max => 5;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 57;

+ +                                    prop line => 58;

+                                  };

+                                  end();

+                              };

+ @@ -380,7 +380,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 61;

+ +                            prop line => 62;

+  

+                              call subevents => array {

+                                  event Ok => sub {

+ @@ -389,7 +389,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 23;

+ +                                    prop line => 24;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -398,7 +398,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 27;

+ +                                    prop line => 28;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -407,14 +407,14 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 60;

+ +                                    prop line => 61;

+                                  };

+  

+                                  event Note => sub {

+                                      call message => match qr{^\n?Failed test};

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 60;

+ +                                    prop line => 61;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -423,7 +423,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 29;

+ +                                    prop line => 30;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -432,14 +432,14 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 32;

+ +                                    prop line => 33;

+                                  };

+  

+                                  event Plan => sub {

+                                      call max => 5;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 61;

+ +                                    prop line => 62;

+                                  };

+                                  end();

+                              };

+ @@ -461,7 +461,7 @@

+                              call reason         => 'No isolation method available';

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 76;

+ +                            prop line => 77;

+                          };

+  

+                          event Ok => sub {

+ @@ -470,7 +470,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 42;

+ +                            prop line => 43;

+                          };

+  

+                          event Ok => sub {

+ @@ -479,14 +479,14 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 44;

+ +                            prop line => 45;

+                          };

+  

+                          event Plan => sub {

+                              call max => 11;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 34;

+ +                            prop line => 35;

+                          };

+                          end();

+                      };

+ @@ -498,7 +498,7 @@

+                      call effective_pass => 1;

+  

+                      prop file => match qr{\QAcceptance.t\E$};

+ -                    prop line => 35;

+ +                    prop line => 36;

+  

+                      call subevents => array {

+                          event Ok => sub {

+ @@ -507,7 +507,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 37;

+ +                            prop line => 38;

+                          };

+  

+                          event Ok => sub {

+ @@ -516,7 +516,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 40;

+ +                            prop line => 41;

+                          };

+  

+                          event Ok => sub {

+ @@ -525,7 +525,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 35;

+ +                            prop line => 36;

+                          };

+  

+                          event Skip => sub {

+ @@ -535,7 +535,7 @@

+                              call reason         => 'No isolation method available';

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 48;

+ +                            prop line => 49;

+                          };

+  

+                          event Subtest => sub {

+ @@ -544,7 +544,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 52;

+ +                            prop line => 53;

+  

+                              call subevents => array {

+                                  event Ok => sub {

+ @@ -553,7 +553,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 23;

+ +                                    prop line => 24;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -562,7 +562,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 27;

+ +                                    prop line => 28;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -571,7 +571,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 51;

+ +                                    prop line => 52;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -580,7 +580,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 29;

+ +                                    prop line => 30;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -589,14 +589,14 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 32;

+ +                                    prop line => 33;

+                                  };

+  

+                                  event Plan => sub {

+                                      call max => 5;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 52;

+ +                                    prop line => 53;

+                                  };

+                                  end();

+                              };

+ @@ -608,7 +608,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 57;

+ +                            prop line => 58;

+  

+                              call subevents => array {

+                                  event Ok => sub {

+ @@ -617,7 +617,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 23;

+ +                                    prop line => 24;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -626,7 +626,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 27;

+ +                                    prop line => 28;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -636,14 +636,14 @@

+                                      call todo           => 'foo todo';

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 56;

+ +                                    prop line => 57;

+                                  };

+  

+                                  event Note => sub {

+                                      call message => match qr{^\n?Failed test};

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 56;

+ +                                    prop line => 57;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -652,7 +652,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 29;

+ +                                    prop line => 30;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -661,14 +661,14 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 32;

+ +                                    prop line => 33;

+                                  };

+  

+                                  event Plan => sub {

+                                      call max => 5;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 57;

+ +                                    prop line => 58;

+                                  };

+                                  end();

+                              };

+ @@ -680,7 +680,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 61;

+ +                            prop line => 62;

+  

+                              call subevents => array {

+                                  event Ok => sub {

+ @@ -689,7 +689,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 23;

+ +                                    prop line => 24;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -698,7 +698,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 27;

+ +                                    prop line => 28;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -707,14 +707,14 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 60;

+ +                                    prop line => 61;

+                                  };

+  

+                                  event Note => sub {

+                                      call message => match qr{^\n?Failed test};

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 60;

+ +                                    prop line => 61;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -723,7 +723,7 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 29;

+ +                                    prop line => 30;

+                                  };

+  

+                                  event Ok => sub {

+ @@ -732,14 +732,14 @@

+                                      call effective_pass => 1;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 32;

+ +                                    prop line => 33;

+                                  };

+  

+                                  event Plan => sub {

+                                      call max => 5;

+  

+                                      prop file => match qr{\QAcceptance.t\E$};

+ -                                    prop line => 61;

+ +                                    prop line => 62;

+                                  };

+                                  end();

+                              };

+ @@ -761,7 +761,7 @@

+                              call reason         => 'No isolation method available';

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 76;

+ +                            prop line => 77;

+                          };

+  

+                          event Ok => sub {

+ @@ -770,7 +770,7 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 42;

+ +                            prop line => 43;

+                          };

+  

+                          event Ok => sub {

+ @@ -779,14 +779,14 @@

+                              call effective_pass => 1;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 44;

+ +                            prop line => 45;

+                          };

+  

+                          event Plan => sub {

+                              call max => 11;

+  

+                              prop file => match qr{\QAcceptance.t\E$};

+ -                            prop line => 35;

+ +                            prop line => 36;

+                          };

+                          end();

+                      };

+ @@ -798,7 +798,7 @@

+                      call effective_pass => 1;

+  

+                      prop file => match qr{\QAcceptance.t\E$};

+ -                    prop line => 18;

+ +                    prop line => 19;

+                  };

+  

+                  event Ok => sub {

+ @@ -807,14 +807,14 @@

+                      call effective_pass => 1;

+  

+                      prop file => match qr{\QAcceptance.t\E$};

+ -                    prop line => 21;

+ +                    prop line => 22;

+                  };

+  

+                  event Plan => sub {

+                      call max => 6;

+  

+                      prop file => match qr{\QAcceptance.t\E$};

+ -                    prop line => 77;

+ +                    prop line => 78;

+                  };

+                  end();

+              };

file added
+7
@@ -0,0 +1,7 @@ 

+ --- !Policy

+ product_versions:

+   - fedora-*

+ decision_context: bodhi_update_push_stable

+ subject_type: koji_build

+ rules:

+   - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

@@ -0,0 +1,2 @@ 

+ from Config import *

+ addFilter("-tests\.noarch: W: no-documentation");

file modified
+34 -2
@@ -2,12 +2,13 @@ 

  %bcond_without perl_Test2_Suite_enables_unicode

  

  Name:           perl-Test2-Suite

- Version:        0.000139

+ Version:        0.000140

  Release:        1%{?dist}

  Summary:        Set of tools built upon the Test2 framework

  License:        GPL+ or Artistic

  URL:            https://metacpan.org/release/Test2-Suite

  Source0:        https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Test2-Suite-%{version}.tar.gz

+ Patch0:         Test2-Suite-0.000140-add_perl.patch

  BuildArch:      noarch

  BuildRequires:  coreutils

  BuildRequires:  make
@@ -104,8 +105,24 @@ 

  library. If you are interested in writing Perl tests this is the distribution

  for you.

  

+ %package tests

+ Summary:        Tests for %{name}

+ Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}

+ Requires:       perl-Test-Harness

+ Requires:       perl(Test::Compile) >= 1.1.0

+ 

+ %description tests

+ Tests from %{name}. Execute them

+ with "%{_libexecdir}/%{name}/test".

+ 

  %prep

  %setup -q -n Test2-Suite-%{version}

+ %patch0 -p1

+ # Help generators to recognize Perl scripts

+ for F in `find . -type f -name '*.t'`; do

+     perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"

+     chmod +x "$F"

+ done

  

  %build

  perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
@@ -113,7 +130,15 @@ 

  

  %install

  %{make_install}

- %{_fixperms} $RPM_BUILD_ROOT/*

+ %{_fixperms} %{buildroot}/*

+ # Install tests

+ mkdir -p %{buildroot}%{_libexecdir}/%{name}

+ cp -a t %{buildroot}%{_libexecdir}/%{name}

+ cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'

+ #!/bin/sh

+ cd %{_libexecdir}/%{name} && exec prove -r -I . -j "$(getconf _NPROCESSORS_ONLN)"

+ EOF

+ chmod +x %{buildroot}%{_libexecdir}/%{name}/test

  

  %check

  unset AUTHOR_TESTING
@@ -125,7 +150,14 @@ 

  %{perl_vendorlib}/*

  %{_mandir}/man3/*

  

+ %files tests

+ %{_libexecdir}/%{name}

+ 

  %changelog

+ * Wed Jun 16 2021 Michal Josef Špaček <mspacek@redhat.com> - 0.000140-1

+ - 0.000140 bump

+ - Package tests

+ 

  * Wed Dec 16 2020 Petr Pisar <ppisar@redhat.com> - 0.000139-1

  - 0.000139 bump

  

file added
+5
@@ -0,0 +1,5 @@ 

+ summary: Sanity tests

+ discover:

+     how: fmf

+ execute:

+     how: tmt

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (Test2-Suite-0.000139.tar.gz) = b5e34c31ae0d6b35f010f30e9704044bfad2451cebc3f2f5380ad73159c91a629bd523a8ee51a662b72fc24898d950c432a4d22de713806fa2cd6639130f0e41

+ SHA512 (Test2-Suite-0.000140.tar.gz) = 26abec9f0aad7d29f6499d27a107bee915c57632b53147f602f5e3732536aabf6c6f903da989a7ebb7113e5c5c0d22a393ed9dc0438d284c09035b76dee91a91

@@ -0,0 +1,4 @@ 

+ summary: Upstream tests

+ component: perl-Test2-Suite

+ require: perl-Test2-Suite-tests

+ test: /usr/libexec/perl-Test2-Suite/test