Compare commits
15 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87f035d1fa | ||
|
|
361280b7ca | ||
|
|
514c60ea82 | ||
|
|
ddce20592f | ||
|
|
55141d8aad | ||
|
|
989836a857 | ||
|
|
902beef560 | ||
|
|
55a0dd2157 | ||
|
|
80c2931f5c | ||
|
|
beaea53af7 | ||
|
|
4266f011a5 | ||
|
|
31153821eb | ||
|
|
023a4e8d0c | ||
|
|
fe4e258d13 | ||
|
|
f66f9ad8e1 |
7 changed files with 201 additions and 216 deletions
146
changelog
Normal file
146
changelog
Normal file
|
|
@ -0,0 +1,146 @@
|
||||||
|
* Mon Nov 21 2022 David Tardon <dtardon@redhat.com> - 1.15.1-8
|
||||||
|
- Convert license to SPDX
|
||||||
|
|
||||||
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Dec 25 2019 David Tardon <dtardon@redhat.com> - 1.15.1-2
|
||||||
|
- try again
|
||||||
|
|
||||||
|
* Wed Dec 25 2019 David Tardon <dtardon@redhat.com> - 1.15.1-1
|
||||||
|
- new upstream release
|
||||||
|
|
||||||
|
* Sat Dec 21 2019 David Tardon <dtardon@redhat.com> - 1.15.0-1
|
||||||
|
- new upstream release
|
||||||
|
|
||||||
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jun 28 2018 Rex Dieter <rdieter@fedoraproject.org> - 1.14.0-5
|
||||||
|
- use %%make_build %%make_install %%ldconfig_scriptlets
|
||||||
|
- -devel: tighten dep on main pkg with %%_isa
|
||||||
|
|
||||||
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue May 02 2017 David Tardon <dtardon@redhat.com> - 1.14.0-1
|
||||||
|
- new upstream release
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 13 2016 David Tardon <dtardon@redhat.com> - 1.13.2-2
|
||||||
|
- drop obsolete cppunit-config
|
||||||
|
|
||||||
|
* Sat Feb 13 2016 David Tardon <dtardon@redhat.com> - 1.13.2-1
|
||||||
|
- switch to new upstream
|
||||||
|
|
||||||
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-16
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Apr 11 2015 David Tardon <dtardon@redhat.com> - 1.12.1-15
|
||||||
|
- rebuild for yet another C++ ABI break
|
||||||
|
|
||||||
|
* Fri Feb 20 2015 David Tardon <dtardon@redhat.com> - 1.12.1-14
|
||||||
|
- rebuild for C++ stdlib ABI change in gcc5
|
||||||
|
|
||||||
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue May 20 2014 David Tardon <dtardon@redhat.com> - 1.12.1-11
|
||||||
|
- rhbz#925193 add support for aarch64
|
||||||
|
|
||||||
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Oct 05 2011 Caolán McNamara <caolanm@redhat.com> - 1.12.1-6
|
||||||
|
- add sf#2912630 fix for unused argument warnings
|
||||||
|
|
||||||
|
* Tue Jun 28 2011 Steven M. Parrish <smparrish@gmail.com> - 1.12.1-5
|
||||||
|
- Fix for bug 452340
|
||||||
|
|
||||||
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Sep 18 2008 Patrice Dumas <pertusus@free.fr> 1.12.1-1
|
||||||
|
- Update to 1.12.1
|
||||||
|
|
||||||
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.12.0-5
|
||||||
|
- Autorebuild for GCC 4.3
|
||||||
|
|
||||||
|
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-4
|
||||||
|
- remove libdir reference to cppunit-config, should fix multiarch conflict
|
||||||
|
(#340951)
|
||||||
|
- fix encoding and remove windows related files in examples
|
||||||
|
- keep timestamps
|
||||||
|
|
||||||
|
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-3
|
||||||
|
- add rightly files to -devel (#224106)
|
||||||
|
- add necessary requires for -devel (#224106)
|
||||||
|
- ship examples
|
||||||
|
|
||||||
|
* Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-2
|
||||||
|
- rebuild for FC6
|
||||||
|
|
||||||
|
* Wed Jul 5 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-1
|
||||||
|
- update to 1.12
|
||||||
|
|
||||||
|
* Sun May 21 2006 Patrice Dumas <pertusus@free.fr> 1.11.6-1
|
||||||
|
- update to 1.11.6
|
||||||
|
|
||||||
|
* Wed Dec 21 2005 Patrice Dumas <pertusus@free.fr> 1.11.4-1
|
||||||
|
- update
|
||||||
|
|
||||||
|
* Mon Aug 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.11.0-2
|
||||||
|
- various cleanups
|
||||||
|
|
||||||
|
* Mon Jul 4 2005 Patrice Dumas <pertusus@free.fr> 1.11.0-1
|
||||||
|
- update using the fedora template
|
||||||
|
|
||||||
|
* Sat Apr 14 2001 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
|
||||||
|
- Initial release
|
||||||
154
cppunit.spec
154
cppunit.spec
|
|
@ -2,13 +2,17 @@
|
||||||
|
|
||||||
Name: cppunit
|
Name: cppunit
|
||||||
Version: 1.15.1
|
Version: 1.15.1
|
||||||
Release: 7%{?dist}
|
Release: %autorelease
|
||||||
|
|
||||||
Summary: C++ unit testing framework
|
Summary: C++ unit testing framework
|
||||||
# no license in files
|
# no license in files
|
||||||
License: LGPLv2+
|
License: LGPL-2.1-or-later
|
||||||
Url: https://www.freedesktop.org/wiki/Software/cppunit/
|
Url: https://www.freedesktop.org/wiki/Software/cppunit/
|
||||||
Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
|
Source: https://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
# Backport patch to run tests in deterministic order
|
||||||
|
# https://gerrit.libreoffice.org/c/cppunit/+/123963
|
||||||
|
Patch: run-tests-in-deterministic-order.patch
|
||||||
|
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
|
@ -84,146 +88,4 @@ mv __dist-examples __dist-examples-dir/examples
|
||||||
%doc doc/html
|
%doc doc/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-7
|
%autochangelog
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Dec 25 2019 David Tardon <dtardon@redhat.com> - 1.15.1-2
|
|
||||||
- try again
|
|
||||||
|
|
||||||
* Wed Dec 25 2019 David Tardon <dtardon@redhat.com> - 1.15.1-1
|
|
||||||
- new upstream release
|
|
||||||
|
|
||||||
* Sat Dec 21 2019 David Tardon <dtardon@redhat.com> - 1.15.0-1
|
|
||||||
- new upstream release
|
|
||||||
|
|
||||||
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-7
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jun 28 2018 Rex Dieter <rdieter@fedoraproject.org> - 1.14.0-5
|
|
||||||
- use %%make_build %%make_install %%ldconfig_scriptlets
|
|
||||||
- -devel: tighten dep on main pkg with %%_isa
|
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue May 02 2017 David Tardon <dtardon@redhat.com> - 1.14.0-1
|
|
||||||
- new upstream release
|
|
||||||
|
|
||||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Feb 13 2016 David Tardon <dtardon@redhat.com> - 1.13.2-2
|
|
||||||
- drop obsolete cppunit-config
|
|
||||||
|
|
||||||
* Sat Feb 13 2016 David Tardon <dtardon@redhat.com> - 1.13.2-1
|
|
||||||
- switch to new upstream
|
|
||||||
|
|
||||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-17
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-16
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Apr 11 2015 David Tardon <dtardon@redhat.com> - 1.12.1-15
|
|
||||||
- rebuild for yet another C++ ABI break
|
|
||||||
|
|
||||||
* Fri Feb 20 2015 David Tardon <dtardon@redhat.com> - 1.12.1-14
|
|
||||||
- rebuild for C++ stdlib ABI change in gcc5
|
|
||||||
|
|
||||||
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-13
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-12
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue May 20 2014 David Tardon <dtardon@redhat.com> - 1.12.1-11
|
|
||||||
- rhbz#925193 add support for aarch64
|
|
||||||
|
|
||||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-10
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-9
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-7
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Oct 05 2011 Caolán McNamara <caolanm@redhat.com> - 1.12.1-6
|
|
||||||
- add sf#2912630 fix for unused argument warnings
|
|
||||||
|
|
||||||
* Tue Jun 28 2011 Steven M. Parrish <smparrish@gmail.com> - 1.12.1-5
|
|
||||||
- Fix for bug 452340
|
|
||||||
|
|
||||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.1-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Sep 18 2008 Patrice Dumas <pertusus@free.fr> 1.12.1-1
|
|
||||||
- Update to 1.12.1
|
|
||||||
|
|
||||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.12.0-5
|
|
||||||
- Autorebuild for GCC 4.3
|
|
||||||
|
|
||||||
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-4
|
|
||||||
- remove libdir reference to cppunit-config, should fix multiarch conflict
|
|
||||||
(#340951)
|
|
||||||
- fix encoding and remove windows related files in examples
|
|
||||||
- keep timestamps
|
|
||||||
|
|
||||||
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 1.12.0-3
|
|
||||||
- add rightly files to -devel (#224106)
|
|
||||||
- add necessary requires for -devel (#224106)
|
|
||||||
- ship examples
|
|
||||||
|
|
||||||
* Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-2
|
|
||||||
- rebuild for FC6
|
|
||||||
|
|
||||||
* Wed Jul 5 2006 Patrice Dumas <pertusus@free.fr> 1.12.0-1
|
|
||||||
- update to 1.12
|
|
||||||
|
|
||||||
* Sun May 21 2006 Patrice Dumas <pertusus@free.fr> 1.11.6-1
|
|
||||||
- update to 1.11.6
|
|
||||||
|
|
||||||
* Wed Dec 21 2005 Patrice Dumas <pertusus@free.fr> 1.11.4-1
|
|
||||||
- update
|
|
||||||
|
|
||||||
* Mon Aug 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.11.0-2
|
|
||||||
- various cleanups
|
|
||||||
|
|
||||||
* Mon Jul 4 2005 Patrice Dumas <pertusus@free.fr> 1.11.0-1
|
|
||||||
- update using the fedora template
|
|
||||||
|
|
||||||
* Sat Apr 14 2001 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
|
|
||||||
- Initial release
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
summary: CI Gating Plan
|
summary: CI Gating Plan
|
||||||
discover:
|
discover:
|
||||||
how: fmf
|
how: fmf
|
||||||
directory: tests
|
|
||||||
execute:
|
execute:
|
||||||
how: beakerlib
|
how: tmt
|
||||||
|
|
|
||||||
43
run-tests-in-deterministic-order.patch
Normal file
43
run-tests-in-deterministic-order.patch
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
From 64eaa35c2de99581e522608e841defffb4b2923b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stephan Bergmann <sbergman@redhat.com>
|
||||||
|
Date: Thu, 21 Oct 2021 11:14:34 +0200
|
||||||
|
Subject: [PATCH] Run tests in deterministic order
|
||||||
|
|
||||||
|
LibreOffice already benefits from this (see
|
||||||
|
<https://git.libreoffice.org/core/+/2f2246d22e2a8ccbc1dc3e6f5243734a61edf270%5E!>
|
||||||
|
"external/cppunit: Run tests in deterministic order", especially as otherwise
|
||||||
|
the order in which tests happened to get run differed between --disable-lto and
|
||||||
|
--enable-lto builds.
|
||||||
|
|
||||||
|
Change-Id: I87d6d7cb0f4c2f6a0ea1ac3ba3d48b4e089eb5c7
|
||||||
|
Reviewed-on: https://gerrit.libreoffice.org/c/cppunit/+/123963
|
||||||
|
Tested-by: Stephan Bergmann <sbergman@redhat.com>
|
||||||
|
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
|
||||||
|
---
|
||||||
|
|
||||||
|
diff --git a/src/cppunit/TestFactoryRegistry.cpp b/src/cppunit/TestFactoryRegistry.cpp
|
||||||
|
index 35448a6..3b68d58 100644
|
||||||
|
--- a/src/cppunit/TestFactoryRegistry.cpp
|
||||||
|
+++ b/src/cppunit/TestFactoryRegistry.cpp
|
||||||
|
@@ -143,12 +143,20 @@
|
||||||
|
void
|
||||||
|
TestFactoryRegistry::addTestToSuite( TestSuite *suite )
|
||||||
|
{
|
||||||
|
+ std::multimap<std::string, Test *> sorted;
|
||||||
|
for ( Factories::iterator it = m_factories.begin();
|
||||||
|
it != m_factories.end();
|
||||||
|
++it )
|
||||||
|
{
|
||||||
|
TestFactory *factory = *it;
|
||||||
|
- suite->addTest( factory->makeTest() );
|
||||||
|
+ Test *test = factory->makeTest();
|
||||||
|
+ sorted.insert({test->getName(), test});
|
||||||
|
+ }
|
||||||
|
+ // In the unlikely case of multiple Tests with identical names, those will
|
||||||
|
+ // still be added in random order:
|
||||||
|
+ for (auto const &i: sorted)
|
||||||
|
+ {
|
||||||
|
+ suite->addTest( i.second );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,63 +0,0 @@
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
#
|
|
||||||
# Makefile of /tools/cppunit/Sanity/basic-test
|
|
||||||
# Description: cppunit basic test
|
|
||||||
# Author: Edjunior Machado <emachado@redhat.com>
|
|
||||||
#
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
#
|
|
||||||
# Copyright (c) 2021 Red Hat, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software: you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License as
|
|
||||||
# published by the Free Software Foundation, either version 2 of
|
|
||||||
# the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be
|
|
||||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
||||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
# PURPOSE. See the GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program. If not, see http://www.gnu.org/licenses/.
|
|
||||||
#
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
export TEST=/tools/cppunit/Sanity/basic-test
|
|
||||||
export TESTVERSION=1.0
|
|
||||||
|
|
||||||
BUILT_FILES=
|
|
||||||
|
|
||||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE hello.cpp
|
|
||||||
|
|
||||||
.PHONY: all install download clean
|
|
||||||
|
|
||||||
run: $(FILES) build
|
|
||||||
./runtest.sh
|
|
||||||
|
|
||||||
build: $(BUILT_FILES)
|
|
||||||
test -x runtest.sh || chmod a+x runtest.sh
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f *~ $(BUILT_FILES)
|
|
||||||
|
|
||||||
|
|
||||||
include /usr/share/rhts/lib/rhts-make.include
|
|
||||||
|
|
||||||
$(METADATA): Makefile
|
|
||||||
@echo "Owner: Edjunior Machado <emachado@redhat.com>" > $(METADATA)
|
|
||||||
@echo "Name: $(TEST)" >> $(METADATA)
|
|
||||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
|
||||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
|
||||||
@echo "Description: cppunit basic test" >> $(METADATA)
|
|
||||||
@echo "Type: Sanity" >> $(METADATA)
|
|
||||||
@echo "TestTime: 1h" >> $(METADATA)
|
|
||||||
@echo "RunFor: cppunit" >> $(METADATA)
|
|
||||||
@echo "Requires: gcc-c++ cppunit cppunit-devel" >> $(METADATA)
|
|
||||||
@echo "Priority: Normal" >> $(METADATA)
|
|
||||||
@echo "License: GPLv2+" >> $(METADATA)
|
|
||||||
@echo "Confidential: no" >> $(METADATA)
|
|
||||||
@echo "Destructive: no" >> $(METADATA)
|
|
||||||
@echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
|
|
||||||
|
|
||||||
rhts-lint $(METADATA)
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
PURPOSE of /tools/cppunit/Sanity/basic-test
|
|
||||||
Description: cppunit basic test
|
|
||||||
Author: Edjunior Machado <emachado@redhat.com>
|
|
||||||
|
|
@ -5,9 +5,10 @@ component:
|
||||||
- cppunit
|
- cppunit
|
||||||
test: ./runtest.sh
|
test: ./runtest.sh
|
||||||
framework: beakerlib
|
framework: beakerlib
|
||||||
recommend:
|
require:
|
||||||
|
- bash
|
||||||
|
- coreutils
|
||||||
- gcc-c++
|
- gcc-c++
|
||||||
- cppunit
|
|
||||||
- cppunit-devel
|
- cppunit-devel
|
||||||
duration: 1h
|
duration: 1h
|
||||||
extra-summary: /tools/cppunit/Sanity/basic-test
|
extra-summary: /tools/cppunit/Sanity/basic-test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue