Accepting request 220629 from GNOME:Factory
- Update to version 0.9.12: + Additional unit tests created for internal and external Check APIs. + Check now compiled on Windows using MSVC when using CMake and NMake. All unit tests pass, though shell script based ones need to be run in the MSYS environment. + Check now compiles on Windows using Visual Studio 10 when using CMake. check_check passes when run from Visual Studios. + Always capture the start and end times of tests when using NO_FORK mode. Previously the end time was not captured, resulting in arbitrary durations being recorded when tests failed. Bug#87. + Added additional configure script checks for support of timer_create() on the target system. This allows for OpenBSD to compile and run all Check's unit tests successfully. + Added a unit test, check_mem_leaks, which can be used against valgrind to test for memory leaks. No memory leaks were found. + Added tcase_add_loop_test support in checkm. + Add support for logging in Test Anything Protocol (TAP) format. + Refactor Check's assertions to be more like the assert() call in assert.h, in that static source code analyzers can use gcc attributes in the header to make assumptions about the flow of the code. See feature request #29. + Fix ck_assert_ptr_* causing const compilation warnings. - Add check-missing-includes.patch: Add missing include in order to fix the build. (forwarded request 220627 from Zaitor) OBS-URL: https://build.opensuse.org/request/show/220629 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/check?expand=0&rev=25
This commit is contained in:
commit
9ce6373f0d
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ea4e8c7ffb00bb4ffb3f59f11744a71f1cc4212c79f3083c7d9a4b0953976936
|
|
||||||
size 691146
|
|
3
check-0.9.12.tar.gz
Normal file
3
check-0.9.12.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c7d47e55e133a0ca19a52e08a99333ac55cb22618b53719b7f4117a1875b1ea3
|
||||||
|
size 730404
|
11
check-missing-includes.patch
Normal file
11
check-missing-includes.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -ur check-0.9.12/tests/check_mem_leaks.c check-0.9.12.patched/tests/check_mem_leaks.c
|
||||||
|
--- check-0.9.12/tests/check_mem_leaks.c 2014-01-21 01:20:39.000000000 +0100
|
||||||
|
+++ check-0.9.12.patched/tests/check_mem_leaks.c 2014-02-02 20:23:54.201715992 +0100
|
||||||
|
@@ -10,6 +10,7 @@
|
||||||
|
#include <string.h>
|
||||||
|
#include <check.h>
|
||||||
|
#include "config.h"
|
||||||
|
+#include "check_check.h"
|
||||||
|
|
||||||
|
int main (int argc, char **argv)
|
||||||
|
{
|
@ -1,3 +1,33 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 2 19:26:20 UTC 2014 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.9.12:
|
||||||
|
+ Additional unit tests created for internal and external Check
|
||||||
|
APIs.
|
||||||
|
+ Check now compiled on Windows using MSVC when using CMake and
|
||||||
|
NMake. All unit tests pass, though shell script based ones need
|
||||||
|
to be run in the MSYS environment.
|
||||||
|
+ Check now compiles on Windows using Visual Studio 10 when using
|
||||||
|
CMake. check_check passes when run from Visual Studios.
|
||||||
|
+ Always capture the start and end times of tests when using
|
||||||
|
NO_FORK mode. Previously the end time was not captured,
|
||||||
|
resulting in arbitrary durations being recorded when tests
|
||||||
|
failed. Bug#87.
|
||||||
|
+ Added additional configure script checks for support of
|
||||||
|
timer_create() on the target system. This allows for OpenBSD to
|
||||||
|
compile and run all Check's unit tests successfully.
|
||||||
|
+ Added a unit test, check_mem_leaks, which can be used against
|
||||||
|
valgrind to test for memory leaks. No memory leaks were found.
|
||||||
|
+ Added tcase_add_loop_test support in checkm.
|
||||||
|
+ Add support for logging in Test Anything Protocol (TAP) format.
|
||||||
|
+ Refactor Check's assertions to be more like the assert() call
|
||||||
|
in assert.h, in that static source code analyzers can use gcc
|
||||||
|
attributes in the header to make assumptions about the flow of
|
||||||
|
the code. See feature request #29.
|
||||||
|
+ Fix ck_assert_ptr_* causing const compilation warnings.
|
||||||
|
- Add check-missing-includes.patch: Add missing include in order
|
||||||
|
to fix the build.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 6 21:58:35 UTC 2013 - dimstar@opensuse.org
|
Wed Nov 6 21:58:35 UTC 2013 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package check
|
# spec file for package check
|
||||||
#
|
#
|
||||||
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,14 +17,16 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: check
|
Name: check
|
||||||
Version: 0.9.11
|
Version: 0.9.12
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Unit Test Framework for C
|
Summary: Unit Test Framework for C
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: http://check.sourceforge.net/
|
Url: http://check.sourceforge.net/
|
||||||
Source: http://downloads.sourceforge.net/project/check/check/0.9.11/%{name}-%{version}.tar.gz
|
Source: http://downloads.sourceforge.net/project/check/check/%{version}/%{name}-%{version}.tar.gz
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
|
# PATCH-FIX-UPSTREAM check-missing-includes.patch dimstar@opensuse.org -- Include check_check.h for the tests; fixes implicit declarations.
|
||||||
|
Patch0: check-missing-includes.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
|
|
||||||
@ -53,6 +55,7 @@ code editors and IDEs.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} -std=gnu99"
|
export CFLAGS="%{optflags} -std=gnu99"
|
||||||
|
Loading…
Reference in New Issue
Block a user