Sync from SUSE:ALP:Source:Standard:1.0 cmocka revision ab070458bc493b19ca714dc553c9c8c0
This commit is contained in:
commit
5c8a7a2c9d
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
7
baselibs.conf
Normal file
7
baselibs.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
libcmocka0
|
||||||
|
provides "libcmocka-<targettype> = <version>"
|
||||||
|
obsoletes "libmockery-<targettype> <= <version>"
|
||||||
|
libcmocka-devel
|
||||||
|
+/usr/lib(64)?/cmake/cmocka/.*
|
||||||
|
requires -"libcmocka-<targettype>"
|
||||||
|
requires "libcmocka0-<targettype> = <version>"
|
BIN
cmocka-1.1.7.tar.xz
(Stored with Git LFS)
Normal file
BIN
cmocka-1.1.7.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
16
cmocka-1.1.7.tar.xz.asc
Normal file
16
cmocka-1.1.7.tar.xz.asc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQIzBAABCgAdFiEEjf9T4Y8qvI2PPJIjfuD8TcwBTj0FAmP3ctgACgkQfuD8TcwB
|
||||||
|
Tj3xYxAAng0v96Q451nwdc+UStqLKMWeou2zNvADLVVuWP70cublsbMrEwrsB6B9
|
||||||
|
eXzD6oqSmyUTBRwishWkSjh5QQeSWkBw00SZy77UfUrxUww23985DW/rQCSESvTD
|
||||||
|
IOEOw9HXdBIZGqUCQ5U6K5ukIy8+MuTymzTdmZYdYtP8Y+yp6CM9i4fLDLX/D3Ac
|
||||||
|
noPa4JW3xt8ypFfINEJMelrStxXHilulA8l1MzwLnxd7Hc5pul+9PepyjS3Fipq6
|
||||||
|
Z/pwNU9Vg8sA0y/VBfP6QNLY/im99fNl6gcoluG/jo2ealz5vQatuCEtnkn7jOK7
|
||||||
|
/JFXTklyI+o5s5CiOnmg7AXQPF5YJUVNyvD733lxhu4atURGydAazf+BIf8p8EOf
|
||||||
|
smXcbVn0q4sk/gY28kHvGzVRGTR5sNIHKuudV9R6DL034E6vWziPdmxI7joXmVd0
|
||||||
|
VJw3pSgx+PavKgRikPnvpTsMgUDuOUzWeG7Ih5O0SYTArwkMNCVaUiQmD9KSXahQ
|
||||||
|
lGEdDreCv8HyIlSxMozYu8zWwbhS0dZhOmEfA3kxOQukl0OUcbQcdxsXjwJG3Yh+
|
||||||
|
i9HvAW2fv1YSzzIllDyfHIp8YBeY2XmTnnkqTEMInihcvrB3BAXfDxVmgHK74oO4
|
||||||
|
4G92bINVhrG9+EnEeV913r8WRexO3qVG7dF1uCuUVUcDZXsAV5E=
|
||||||
|
=+KpI
|
||||||
|
-----END PGP SIGNATURE-----
|
218
cmocka.changes
Normal file
218
cmocka.changes
Normal file
@ -0,0 +1,218 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 5 09:26:51 UTC 2023 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Add missing cmake config files for 32bit packages
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 27 13:16:24 UTC 2023 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Update to version 1.1.7
|
||||||
|
* Fixed tarball generation
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 17 14:11:14 UTC 2023 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Update to version 1.1.6
|
||||||
|
* Added new assert macros to compare 2 double given an epsilon
|
||||||
|
* Added meson build system
|
||||||
|
* Added header with version to TAP13 output
|
||||||
|
* Fixed issues with MSVC
|
||||||
|
* Fixed TAP output for skipped tests
|
||||||
|
* Fixed issue with fail_msg
|
||||||
|
* CMake generated configs for find_package(cmocka)
|
||||||
|
* Documentation improvements
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 24 09:43:30 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Disable LTO (boo#1133122).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 28 13:54:53 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Update to version 1.1.5
|
||||||
|
* Added cmocka_set_skip_filter()
|
||||||
|
* cmocka version 1.1.4
|
||||||
|
* Added assert_float(_not)_equal()
|
||||||
|
* Added expect_any_always()
|
||||||
|
* Small bug fixes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 27 13:58:03 UTC 2018 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Update to version 1.1.3
|
||||||
|
* Fixed subunit output on failures
|
||||||
|
* Do not abort if a test is skipped
|
||||||
|
* Switched to Modern CMake
|
||||||
|
- Removed 0001-cmake-Only-support-building-docs-the-on-cmake-3.9.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 30 08:04:05 UTC 2018 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Fix packaging the documentation
|
||||||
|
- Added 0001-cmake-Only-support-building-docs-the-on-cmake-3.9.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 29 15:15:03 UTC 2018 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Update to version 1.1.2
|
||||||
|
* Added function to filter tests (cmocka_set_test_filter)
|
||||||
|
* Added new mocking example (uptime)
|
||||||
|
* Fixed fixture error reporting
|
||||||
|
* Fixed compiler flags detection
|
||||||
|
* Some improvement for API documentation
|
||||||
|
- Added HTML documentation
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 7 14:33:00 UTC 2017 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Update to version 1.1.1
|
||||||
|
* Fixed TAP output
|
||||||
|
* Fixed cmocka on Windows x64
|
||||||
|
* Fixed xUnit output durations
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 25 14:05:35 UTC 2016 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Fix url for Source0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 21 15:01:34 UTC 2016 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Update to version 1.1.0
|
||||||
|
* Added support to catch multiple exceptions
|
||||||
|
* Added support to verify call ordering
|
||||||
|
* Added support to pass initial data to test cases
|
||||||
|
* Added will_return_maybe() for ignoring mock returns
|
||||||
|
* Added subtests for groups using TAP output
|
||||||
|
* Added support to write multiple XML files for groups
|
||||||
|
* Improved documentation
|
||||||
|
* Fixed XML output generataion
|
||||||
|
* Fixed Windows builds with VS2015
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 15 08:37:06 UTC 2015 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Do not turn of rpath support
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 14 14:07:14 UTC 2015 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Use properly %cmake macro to build nicely with all the linker/cflags
|
||||||
|
- Use proper Url and Source
|
||||||
|
- Properly fails on crashing tests instead of finishing build
|
||||||
|
- Enable cmockery support
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 12 14:57:24 UTC 2015 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Update to version 1.0.1
|
||||||
|
* Added a macro for assert_ptr_equal().
|
||||||
|
* Fixed test_realloc() if 0 size is passed.
|
||||||
|
* Fixed objects packaging bug.
|
||||||
|
* Fixed building with newer gcc versions.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 17 08:13:09 UTC 2015 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Add missing requires for cmake and pkg-config
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 17 08:10:18 UTC 2015 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Turn on unit tests
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 16 18:14:15 UTC 2015 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Update to version 1.0.0
|
||||||
|
* Added new test runner with group fixtures. The old runner is deprecated
|
||||||
|
* Added an extensible message output formatter
|
||||||
|
* Added jUnit XML message output
|
||||||
|
* Added subunit message output
|
||||||
|
* Added Test Anything Protocol message output
|
||||||
|
* Added skip() command
|
||||||
|
* Added test_realloc()
|
||||||
|
* Added a cmockery compat header
|
||||||
|
* Fixed a lot of bugs on Windows
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 11 15:03:12 UTC 2014 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Update to version 0.4.1
|
||||||
|
* Added CMOCKA_TEST_ABORT env variable to leave threading apps.
|
||||||
|
* Fixed count parameter of expect_check() macro.
|
||||||
|
* Fixed reporting the number of tests.
|
||||||
|
* Fixed cmake config files.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 1 13:57:34 UTC 2014 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Add baselibs.conf as Source.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 26 13:23:43 UTC 2014 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Add BuildRequire for pkg-config.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 26 13:23:43 UTC 2014 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Add BuildRequire for pkg-config.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 11 14:16:07 UTC 2014 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Update to version 0.4.0
|
||||||
|
* Added support for group testing.
|
||||||
|
* Added assert_return_code().
|
||||||
|
* Added better messages for errors.
|
||||||
|
* Added cmake config mode support.
|
||||||
|
* Fixed bug with unit_test_setup and unit_test_teardown.
|
||||||
|
* Fixed a lot of small bugs.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 11 13:17:27 UTC 2013 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Update to version 0.3.2
|
||||||
|
* Fixed FindNSIS detection.
|
||||||
|
* Fixed unit_test_setup() and unit_test_teardown().
|
||||||
|
* Fixed GTest and GCC message style conformance
|
||||||
|
* Fixed stringification in will_return_always().
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 10 13:38:42 UTC 2013 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Update to version 0.3.1
|
||||||
|
* Fixed pointer conversion on s390 and ppc (32bit big endian).
|
||||||
|
* Fixed the customer_database test on big endian.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 5 06:38:33 UTC 2013 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Update to version 0.3.0
|
||||||
|
* Added a better mock object example.
|
||||||
|
* Added pkgconfig file.
|
||||||
|
* Added new macros mock_type() and mock_ptr_type().
|
||||||
|
* Added more documentation.
|
||||||
|
* Fixed installation problems on some platforms.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 5 10:16:53 UTC 2013 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Add a libcmocka-devel-static package for the static library.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 14 10:29:40 UTC 2013 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Uploaded release tarball.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 10 08:56:04 UTC 2012 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Fix building i686 on a x86_64 platform.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 26 13:40:20 UTC 2012 - asn@cryptomilk.org
|
||||||
|
|
||||||
|
- Initial version 0.2.0
|
BIN
cmocka.keyring
Normal file
BIN
cmocka.keyring
Normal file
Binary file not shown.
149
cmocka.spec
Normal file
149
cmocka.spec
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
#
|
||||||
|
# spec file for package cmocka
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1500 || 0%{?sle_version} >= 150000
|
||||||
|
%bcond_without docs
|
||||||
|
%else
|
||||||
|
# We need cmake >= 3.9 to build docs
|
||||||
|
%bcond_with docs
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Name: cmocka
|
||||||
|
Version: 1.1.7
|
||||||
|
Release: 0
|
||||||
|
Summary: Lightweight library to simplify and generalize unit tests for C
|
||||||
|
License: Apache-2.0
|
||||||
|
Group: Productivity/Networking/Other
|
||||||
|
URL: https://cmocka.org
|
||||||
|
|
||||||
|
Source0: https://cmocka.org/files/1.1/%{name}-%{version}.tar.xz
|
||||||
|
Source1: https://cmocka.org/files/1.1/%{name}-%{version}.tar.xz.asc
|
||||||
|
Source2: %{name}.keyring
|
||||||
|
Source3: baselibs.conf
|
||||||
|
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: doxygen
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
|
||||||
|
Obsoletes: libcmocka-devel-static < %{version}
|
||||||
|
|
||||||
|
%description
|
||||||
|
cmocka is an elegant unit testing framework for C with support for mock
|
||||||
|
objects. It only requires the standard C library, works on a range of computing
|
||||||
|
platforms (including embedded) and with different compilers.
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Support for mock objects
|
||||||
|
* Only requires the C library
|
||||||
|
* Several supported output formats (Subunit, TAP, jUnit XML)
|
||||||
|
* Fully documented API
|
||||||
|
* Test fixtures
|
||||||
|
* Exception handling for signals (SIGSEGV, SIGILL, ...)
|
||||||
|
* No fork() used
|
||||||
|
* Very well tested
|
||||||
|
* Testing of memory leaks, buffer overflows and underflows.
|
||||||
|
|
||||||
|
Also, CMocka tries to avoid the use of some of the newer features of C
|
||||||
|
compilers.
|
||||||
|
|
||||||
|
%package -n libcmocka0
|
||||||
|
Summary: Lightweight library to simplify and generalize unit tests for C
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libcmocka0
|
||||||
|
cmocka is an elegant unit testing framework for C with support for mock
|
||||||
|
objects. It only requires the standard C library, works on a range of computing
|
||||||
|
platforms (including embedded) and with different compilers.
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Support for mock objects
|
||||||
|
* Only requires the C library
|
||||||
|
* Several supported output formats (Subunit, TAP, jUnit XML)
|
||||||
|
* Fully documented API
|
||||||
|
* Test fixtures
|
||||||
|
* Exception handling for signals (SIGSEGV, SIGILL, ...)
|
||||||
|
* No fork() used
|
||||||
|
* Very well tested
|
||||||
|
* Testing of memory leaks, buffer overflows and underflows.
|
||||||
|
|
||||||
|
Also, CMocka tries to avoid the use of some of the newer features of C
|
||||||
|
compilers.
|
||||||
|
|
||||||
|
%package -n libcmocka-devel
|
||||||
|
Summary: Development headers for the cmocka library
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: cmake
|
||||||
|
Requires: libcmocka0 = %{version}
|
||||||
|
Requires: pkg-config
|
||||||
|
|
||||||
|
%description -n libcmocka-devel
|
||||||
|
Development headers for the cmocka unit testing library.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
|
%cmake \
|
||||||
|
-DCMAKE_SKIP_RPATH=OFF \
|
||||||
|
-DWITH_STATIC_LIB=ON \
|
||||||
|
-DWITH_CMOCKERY_SUPPORT=ON \
|
||||||
|
-DUNIT_TESTING=ON
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
%if %{with docs}
|
||||||
|
make docs
|
||||||
|
#endif with docs
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd build
|
||||||
|
ctest --output-on-failure
|
||||||
|
popd
|
||||||
|
|
||||||
|
%post -n libcmocka0 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libcmocka0 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n libcmocka0
|
||||||
|
%doc AUTHORS README.md ChangeLog
|
||||||
|
%license COPYING
|
||||||
|
%{_libdir}/libcmocka.so.*
|
||||||
|
|
||||||
|
%files -n libcmocka-devel
|
||||||
|
%if %{with docs}
|
||||||
|
%doc build/doc/html
|
||||||
|
#endif with docs
|
||||||
|
%endif
|
||||||
|
%{_includedir}/cmocka.h
|
||||||
|
%{_includedir}/cmocka_pbc.h
|
||||||
|
%dir %{_includedir}/cmockery
|
||||||
|
%{_includedir}/cmockery/cmockery.h
|
||||||
|
%{_includedir}/cmockery/pbc.h
|
||||||
|
%{_libdir}/libcmocka.so
|
||||||
|
%{_libdir}/pkgconfig/cmocka.pc
|
||||||
|
%dir %{_libdir}/cmake/cmocka
|
||||||
|
%{_libdir}/cmake/cmocka/cmocka-config-relwithdebinfo.cmake
|
||||||
|
%{_libdir}/cmake/cmocka/cmocka-config-version.cmake
|
||||||
|
%{_libdir}/cmake/cmocka/cmocka-config.cmake
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user