Compare commits

...

No commits in common. "c8s" and "c10s" have entirely different histories.
c8s ... c10s

7 changed files with 188 additions and 25 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

3
.gitignore vendored
View File

@ -1,2 +1 @@
SOURCES/Test-Differences-0.64.tar.gz /Test-Differences-[0-9.]*.tar.gz
/Test-Differences-0.64.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
# RHEL
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,25 +1,24 @@
# RPM version needs 4 digits after the decimal to preserve upgrade path # TODO: BR: optional test dependency Unknown::Values if it becomes available
%global module_version 0.64
%global RPM_version %{module_version}00
Name: perl-Test-Differences Name: perl-Test-Differences
Version: %{RPM_version} %global cpan_version 0.71
Release: 8%{?dist} Version: %(LANG=C printf "%.4f" %{cpan_version})
Release: 7%{?dist}
Summary: Test strings and data structures and show differences if not OK Summary: Test strings and data structures and show differences if not OK
Group: Development/Libraries License: GPL-1.0-or-later OR Artistic-1.0-Perl
License: GPL+ or Artistic URL: https://metacpan.org/release/Test-Differences
URL: http://search.cpan.org/dist/Test-Differences/ Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Differences-%{cpan_version}.tar.gz
Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCANTRELL/Test-Differences-%{module_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch BuildArch: noarch
# Module Build # Module Build
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: findutils BuildRequires: findutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime # Module Runtime
BuildRequires: perl(B::Deparse)
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper) >= 2.126 BuildRequires: perl(Data::Dumper) >= 2.126
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
@ -28,46 +27,186 @@ BuildRequires: perl(Text::Diff) >= 1.43
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
# Test Suite # Test Suite
BuildRequires: perl(Capture::Tiny) >= 0.24 BuildRequires: perl(Capture::Tiny) >= 0.24
BuildRequires: perl(Test::Builder) >= 0.33 BuildRequires: perl(lib)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::More) >= 0.88
# Optional Tests # Optional Tests
BuildRequires: perl(Pod::Coverage) >= 0.18 BuildRequires: perl(Pod::Coverage) >= 0.18
BuildRequires: perl(Test::Pod) >= 1.22 BuildRequires: perl(Test::Pod) >= 1.22
BuildRequires: perl(Test::Pod::Coverage) >= 1.08 BuildRequires: perl(Test::Pod::Coverage) >= 1.08
# Explicit Requirements # Explicit Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(B::Deparse)
Requires: perl(Text::Diff) >= 1.43 Requires: perl(Text::Diff) >= 1.43
# Remove private test modules
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Test::Differences::TestUtils::Capture\\)$
%description %description
When the code you're testing returns multiple lines, records or data When the code you're testing returns multiple lines, records or data
structures and they're just plain wrong, an equivalent to the Unix structures and they're just plain wrong, an equivalent to the Unix
diff utility may be just what's needed. diff utility may be just what's needed.
%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 %prep
%setup -q -n Test-Differences-%{module_version} %setup -q -n Test-Differences-%{cpan_version}
# Help generators to recognize 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 %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot} %{_fixperms} -c %{buildroot}
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
# Remove author tests
rm -f %{buildroot}%{_libexecdir}/%{name}/t/boilerplate.t
rm -f %{buildroot}%{_libexecdir}/%{name}/t/pod.t
rm -f %{buildroot}%{_libexecdir}/%{name}/t/pod-coverage.t
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 %check
make test make test
%clean
rm -rf %{buildroot}
%files %files
%doc Changes README %doc Changes README
%{perl_vendorlib}/Test/ %{perl_vendorlib}/Test/
%{_mandir}/man3/Test::Differences.3* %{_mandir}/man3/Test::Differences.3*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.7100-7
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Wed Aug 21 2024 Michal Josef Špaček <mspacek@redhat.com> - 0.7100-6
- Improve version processing
* Mon Aug 19 2024 Michal Josef Špaček <mspacek@redhat.com> - 0.7100-5
- Fix version handling for git commit checks
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.7100-4
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7100-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7100-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Oct 13 2023 Paul Howarth <paul@city-fan.org> - 0.7100-1
- Update to 0.71
- Document and test different behavior regarding Booleans in perl 5.38.0
compared to earlier versions (GH#21)
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7000-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Jul 8 2023 Paul Howarth <paul@city-fan.org> - 0.7000-1
- Update to 0.70
- Stop pointless use of taint-mode in tests, so tests pass when perl is
built without taint support
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6900-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6900-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.6900-3
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6900-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Jan 8 2022 Paul Howarth <paul@city-fan.org> - 0.6900-1
- Update to 0.69
- Special-case Unknown::Values objects in comparisons, as it's better to spit
out a diagnostic failure than to just die
- Correct misleading Unicode doco
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6800-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.6800-2
- Perl 5.34 rebuild
* Wed May 19 2021 Paul Howarth <paul@city-fan.org> - 0.6800-1
- Update to 0.68
- Revert undocumented change that was causing unreasonably verbose output
(GH#5)
- Improve documentation about text vs. data mode and eq_or_diff_{text,data}
(GH#8)
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6700-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6700-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.6700-5
- Perl 5.32 rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6700-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6700-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.6700-2
- Perl 5.30 rebuild
* Thu Mar 7 2019 Paul Howarth <paul@city-fan.org> - 0.6700-1
- Update to 0.67
- Correctly compare subroutine references
* Thu Feb 28 2019 Paul Howarth <paul@city-fan.org> - 0.6600-1
- Update to 0.66
- Fix tests on Windows
* Wed Feb 20 2019 Paul Howarth <paul@city-fan.org> - 0.6500-1
- Update to 0.65
- Canonical repo is now
https://github.com/DrHyde/perl-modules-Test-Differences
- Fix discrepancies in copyright notices
- Make the tests more consistent
- Add unicode tests
- Fix whitespace issue in tests when using recent Test::More in verbose mode
- Get rid of Build.PL, just use Makefile.PL
- Drop redundant buildroot cleaning in %%install section
- Simplify find command using -delete
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6400-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6400-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.6400-9
- Perl 5.28 rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6400-8 * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6400-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@ -92,7 +231,7 @@ rm -rf %{buildroot}
* Tue Nov 24 2015 Paul Howarth <paul@city-fan.org> - 0.6400-1 * Tue Nov 24 2015 Paul Howarth <paul@city-fan.org> - 0.6400-1
- Update to 0.64 - Update to 0.64
- Bump dependency version for Text::Diff to avoid a buggy release - Bump dependency version for Text::Diff to avoid a buggy release
- Make tests pass with relocation perl (CPAN RT#103133) - Make tests pass with relocatable perl (CPAN RT#103133)
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6300-3 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6300-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

5
plans/sanity.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

View File

@ -1 +1 @@
SHA512 (Test-Differences-0.64.tar.gz) = 118a4b8e3f61f64d6676c82913bb605a843a408f3fc5d960b40cc86f10423380a203b2a5604e15ba8d4e0cff96af88b551fba1c7aa2ada3c0ef408a27ee5f069 SHA512 (Test-Differences-0.71.tar.gz) = 6e6c882b41dd25cbb91d28ec947e669f660df0d8e477a347237a39eba51c74c9e8bcabe8ffccaec7d5912c62cf6ae837e2d2f28551bd9fc110d9503acc86e72e

12
tests/upstream-tests.fmf Normal file
View File

@ -0,0 +1,12 @@
summary: Upstream tests
contact: Michal Josef Spacek <mspacek@redhat.com>
component: perl-Test-Differences
require: perl-Test-Differences-tests
test: /usr/libexec/perl-Test-Differences/test
enabled: true
tag:
- rhel-buildroot
adjust:
- enabled: false
when: distro < rhel-10 or distro < centos-stream-10
continue: false