#1 Tests
Merged 3 years ago by jplesnik. Opened 3 years ago by jplesnik.
Unknown source tests  into  rawhide

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

+ 1

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

  /experimental-0.020.tar.gz

  /experimental-0.021.tar.gz

  /experimental-0.022.tar.gz

+ /experimental-0.024.tar.gz

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}

file modified
+34 -2
@@ -1,6 +1,6 @@

  Name:           perl-experimental

- Version:        0.022

- Release:        4%{?dist}

+ Version:        0.024

+ Release:        1%{?dist}

  Summary:        Experimental features made easy

  License:        GPL+ or Artistic

  URL:            https://metacpan.org/release/experimental
@@ -27,9 +27,24 @@

  This pragma provides an easy and convenient way to enable or disable

  experimental features.

  

+ %package tests

+ Summary:        Tests for %{name}

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

+ Requires:       perl-Test-Harness

+ 

+ %description tests

+ Tests from %{name}. Execute them

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

+ 

  %prep

  %setup -q -n experimental-%{version}

  

+ # Help file to recognise the Perl scripts

+ for F in t/*.t; do

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

+     chmod +x "$F"

+ done

+ 

  %build

  perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1

  %{make_build}
@@ -38,7 +53,17 @@

  %{make_install}

  %{_fixperms} $RPM_BUILD_ROOT/*

  

+ # 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 -I . -j "$(getconf _NPROCESSORS_ONLN)"

+ EOF

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

+ 

  %check

+ export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')

  make test

  

  %files
@@ -47,7 +72,14 @@

  %{perl_vendorlib}/*

  %{_mandir}/man3/*

  

+ %files tests

+ %{_libexecdir}/%{name}

+ 

  %changelog

+ * Mon May 03 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.024-1

+ - 0.024 bump

+ - Package test

+ 

  * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.022-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

  

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 (experimental-0.022.tar.gz) = 6a863a93e553ce53ed850a711a7325730c758936fd9aa1de5001499fad393cbe412c110ad1446666f09740fb0c6239e3028e03eb66049a918b4285694b9880d2

+ SHA512 (experimental-0.024.tar.gz) = dca0c8c55af8d294cb9841e9750df352d96d22b629bb0d1b248f58c186abe02d419981d804938479c2249c404f60874e6a4fe4cc13e7666e5f1df4720c71b909

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

+ summary: Upstream tests

+ component: perl-experimental

+ require: perl-experimental-tests

+ test: /usr/libexec/perl-experimental/test