Package init
This commit is contained in:
parent
286560d483
commit
a7e56e6b85
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# check
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
|||||||
# check
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
{**以下是码云平台说明,您可以替换此简介**
|
|
||||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
||||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 码云特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
22
check-0.11.0-fp.patch
Normal file
22
check-0.11.0-fp.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- check-0.11.0/tests/check_check_master.c.orig 2018-01-29 20:33:55.033001412 -0700
|
||||||
|
+++ check-0.11.0/tests/check_check_master.c 2018-01-29 20:34:31.501879454 -0700
|
||||||
|
@@ -214,7 +214,7 @@ static master_test_t master_tests[] = {
|
||||||
|
{ "Simple Tests", "test_ck_assert_ldouble_ge", CK_FAILURE, CK_MSG_TEXT, "Assertion 'x >= y' failed: x == 2.5, y == 3" },
|
||||||
|
{ "Simple Tests", "test_ck_assert_ldouble_ge_with_mod", CK_FAILURE, CK_MSG_TEXT, "Assertion '2%d >= 3%f' failed: 2%d == 0, 3%f == 1" },
|
||||||
|
{ "Simple Tests", "test_ck_assert_ldouble_with_expr", CK_PASS, CK_MSG_TEXT, "Passed" },
|
||||||
|
- { "Simple Tests", "test_ck_assert_ldouble_eq_tol", CK_FAILURE, CK_MSG_TEXT, "Assertion 'fabsl(y - x) < t' failed: x == 0.001, y == 0.002, t == 0.001" },
|
||||||
|
+ { "Simple Tests", "test_ck_assert_ldouble_eq_tol", CK_FAILURE, CK_MSG_TEXT, "Assertion 'fabsl(y - x) < t' failed: x == 0.001, y == 0.002, t == 0.0009" },
|
||||||
|
{ "Simple Tests", "test_ck_assert_ldouble_eq_tol_with_mod", CK_FAILURE, CK_MSG_TEXT, "Assertion 'fabsl(2%f - 3%d) < 2%p' failed: 3%d == 1, 2%f == 0, 2%p == 0" },
|
||||||
|
{ "Simple Tests", "test_ck_assert_ldouble_ne_tol", CK_FAILURE, CK_MSG_TEXT, "Assertion 'fabsl(y - x) >= t' failed: x == 0.001, y == 0.002, t == 0.01" },
|
||||||
|
{ "Simple Tests", "test_ck_assert_ldouble_ne_tol_with_mod", CK_FAILURE, CK_MSG_TEXT, "Assertion 'fabsl(3%f - 3%d) >= 3%p' failed: 3%d == 1, 3%f == 1, 3%p == 1" },
|
||||||
|
--- check-0.11.0/tests/check_check_sub.c.orig 2017-10-20 06:44:10.000000000 -0600
|
||||||
|
+++ check-0.11.0/tests/check_check_sub.c 2018-01-29 20:33:55.034001409 -0700
|
||||||
|
@@ -1812,7 +1812,7 @@ START_TEST(test_ck_assert_ldouble_eq_tol
|
||||||
|
y*=10.0l;
|
||||||
|
t*=10.0l;
|
||||||
|
ck_assert_ldouble_eq_tol(x, y, t);
|
||||||
|
- t/=10.0l;
|
||||||
|
+ t=0.0009l;
|
||||||
|
record_failure_line_num(__LINE__);
|
||||||
|
ck_assert_ldouble_eq_tol(x, y, t);
|
||||||
|
}
|
||||||
15
check-0.11.0-info-in-builddir.patch
Normal file
15
check-0.11.0-info-in-builddir.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff -up check-0.11.0/configure.ac.info-in-builddir check-0.11.0/configure.ac
|
||||||
|
--- check-0.11.0/configure.ac.info-in-builddir 2016-12-21 15:36:18.415103323 -0500
|
||||||
|
+++ check-0.11.0/configure.ac 2016-12-21 15:37:20.008715140 -0500
|
||||||
|
@@ -20,9 +20,9 @@ AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
AC_CONFIG_LIBOBJ_DIR([lib])
|
||||||
|
|
||||||
|
# really severe build strictness
|
||||||
|
-AM_INIT_AUTOMAKE([-Wall gnits 1.11.2])
|
||||||
|
+#AM_INIT_AUTOMAKE([-Wall gnits 1.11.2])
|
||||||
|
# Change to using into-in-builddir in the future:
|
||||||
|
-#AM_INIT_AUTOMAKE([info-in-builddir -Wall -Werror gnits 1.14])
|
||||||
|
+AM_INIT_AUTOMAKE([info-in-builddir -Wall -Werror gnits 1.14])
|
||||||
|
|
||||||
|
# define things like _GNU_SOURCE appropriately
|
||||||
|
# From patch 2803433, request system extensions to generate 64-bit safe code
|
||||||
BIN
check-0.12.0.tar.gz
Normal file
BIN
check-0.12.0.tar.gz
Normal file
Binary file not shown.
97
check.spec
Normal file
97
check.spec
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
Name: check
|
||||||
|
Version: 0.12.0
|
||||||
|
Release: 4
|
||||||
|
Summary: A unit testing framework for C
|
||||||
|
Source0: https://github.com/libcheck/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
License: LGPLv2+
|
||||||
|
URL: http://libcheck.github.io/check/
|
||||||
|
Patch0: %{name}-0.11.0-info-in-builddir.patch
|
||||||
|
Patch1: %{name}-0.11.0-fp.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc libtool patchutils pkgconfig
|
||||||
|
BuildRequires: subunit-devel texinfo
|
||||||
|
|
||||||
|
%description
|
||||||
|
Check is a unit testing framework for C. It features a simple interface for
|
||||||
|
defining unit tests, putting little in the way of the developer. Tests are
|
||||||
|
run in a separate address space, so both assertion failures and code errors
|
||||||
|
that cause segmentation faults or other signals can be caught. Test results
|
||||||
|
are reportable in the following: Subunit, TAP, XML, and a generic logging
|
||||||
|
format.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Libraries and headers for developing programs with check
|
||||||
|
Requires: pkgconfig
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
Provides: %{name}-static
|
||||||
|
Obsoletes: %{name}-static
|
||||||
|
Provides: %{name}-checkmk
|
||||||
|
Obsoletes: %{name}-checkmk
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Libraries and headers for developing programs with check.Also include checkmk
|
||||||
|
which binary translates concise versions of test suites into C programs.
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
sed -e 's/\(Check: (check)\)Introduction./\1. A unit testing framework for C./' \
|
||||||
|
-i doc/%{name}.texi
|
||||||
|
|
||||||
|
sed -e '/DECLS(\[a/s|)|,,,[AC_INCLUDES_DEFAULT\n[#include <time.h>\n #include <sys/time.h>]]&|' \
|
||||||
|
-i configure.ac
|
||||||
|
|
||||||
|
find . -name .cvsignore -exec rm {} +
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -fiv
|
||||||
|
%configure --disable-timeout-tests
|
||||||
|
%disable_rpath
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
%delete_la
|
||||||
|
rm -rf %{buildroot}%{_infodir}/dir
|
||||||
|
rm -rf %{buildroot}%{_docdir}/%{name}
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
export LD_LIBRARY_PATH=$PWD/src/.libs
|
||||||
|
make check
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING.LESSER
|
||||||
|
%{_libdir}/libcheck.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%license COPYING.LESSER
|
||||||
|
%{_includedir}/*.h
|
||||||
|
%{_libdir}/libcheck.so
|
||||||
|
%{_libdir}/pkgconfig/check.pc
|
||||||
|
%{_datadir}/aclocal/check.m4
|
||||||
|
%{_libdir}/libcheck.a
|
||||||
|
%{_bindir}/checkmk
|
||||||
|
%doc doc/example
|
||||||
|
%doc checkmk/examples checkmk/test
|
||||||
|
%exclude %{_docdir}/checkmk/test/check_checkmk*
|
||||||
|
%exclude %{_docdir}/checkmk/test/empty_input
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc AUTHORS ChangeLog
|
||||||
|
%doc checkmk/README
|
||||||
|
%{_infodir}/check*
|
||||||
|
%{_mandir}/man1/checkmk.1*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Dec 9 2019 mengxian <mengxian@huawei.com> - 0.12.0-4
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user