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.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cmocka?expand=0&rev=11
This commit is contained in:
Andreas Schneider 2014-04-11 14:16:47 +00:00 committed by Git OBS Bridge
parent e4414df5a5
commit 48d6c0dfeb
4 changed files with 21 additions and 10 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2279adb8180fa17346f67fe623e5ec6ce3fed1c4b3b6629307c89ef8b134ec64
size 64460

3
cmocka-0.4.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9411e31ed3402c9dee13b34c328df968c88592ee521243d10145b223de6e6b42
size 69392

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
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

View File

@ -1,7 +1,7 @@
#
# spec file for package cmocka
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,7 +20,7 @@ BuildRequires: cmake
BuildRequires: glibc-devel
Name: cmocka
Version: 0.3.2
Version: 0.4.0
Release: 0
#
Summary: Lightweight library to simplify and generalize unit tests for C
@ -99,10 +99,10 @@ Static cmocka unit testing library.
%setup -q
%build
if test ! -e "build"; then
mkdir build
if test ! -e "obj"; then
mkdir obj
fi
pushd build
pushd obj
cmake \
-DCMAKE_C_FLAGS:STRING="%{optflags}" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
@ -115,10 +115,10 @@ cmake \
%{_builddir}/%{name}-%{version}
make %{?_smp_mflags} VERBOSE=1
popd build
popd obj
%install
pushd build
pushd obj
%makeinstall
popd