diff --git a/check-0.9.11.tar.gz b/check-0.9.11.tar.gz deleted file mode 100644 index 031b148..0000000 --- a/check-0.9.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ea4e8c7ffb00bb4ffb3f59f11744a71f1cc4212c79f3083c7d9a4b0953976936 -size 691146 diff --git a/check-0.9.12.tar.gz b/check-0.9.12.tar.gz new file mode 100644 index 0000000..b7efc2c --- /dev/null +++ b/check-0.9.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7d47e55e133a0ca19a52e08a99333ac55cb22618b53719b7f4117a1875b1ea3 +size 730404 diff --git a/check-missing-includes.patch b/check-missing-includes.patch new file mode 100644 index 0000000..76e4fd5 --- /dev/null +++ b/check-missing-includes.patch @@ -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 + #include + #include "config.h" ++#include "check_check.h" + + int main (int argc, char **argv) + { diff --git a/check.changes b/check.changes index 75482c8..46f71d4 100644 --- a/check.changes +++ b/check.changes @@ -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 diff --git a/check.spec b/check.spec index 1d6d759..68097ed 100644 --- a/check.spec +++ b/check.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,16 @@ Name: check -Version: 0.9.11 +Version: 0.9.12 Release: 0 Summary: Unit Test Framework for C License: LGPL-2.1+ Group: Development/Libraries/C and C++ 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 +# 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 BuildRequires: pkg-config @@ -53,6 +55,7 @@ code editors and IDEs. %prep %setup -q +%patch0 -p1 %build export CFLAGS="%{optflags} -std=gnu99"