enable make check

This commit is contained in:
yixiangzhike 2023-05-25 10:36:52 +08:00
parent 3502df750c
commit 7a6fd28691

View File

@ -2,7 +2,7 @@
Name: CUnit Name: CUnit
Version: 2.1.3 Version: 2.1.3
Release: 23 Release: 24
Summary: A Unit Testing Framework for C Summary: A Unit Testing Framework for C
License: LGPLv2+ License: LGPLv2+
URL: http://cunit.sourceforge.net/ URL: http://cunit.sourceforge.net/
@ -35,7 +35,7 @@ find -name *.c -exec chmod -x {} \;
%build %build
autoreconf -fi autoreconf -fi
%configure --disable-static %configure --disable-static --enable-test
%make_build %make_build
%install %install
@ -48,6 +48,11 @@ for f in AUTHORS ChangeLog COPYING NEWS README TODO VERSION ; do
install -p -m0644 -D $f %{buildroot}%{_docdir}/%{name}/${f} install -p -m0644 -D $f %{buildroot}%{_docdir}/%{name}/${f}
done done
%check
pushd CUnit/Sources/Test/
./test_cunit
popd
%pre %pre
%preun %preun
@ -76,6 +81,9 @@ done
%{_mandir}/man3/CUnit.3* %{_mandir}/man3/CUnit.3*
%changelog %changelog
* Thu May 25 2023 yixiangzhike <yixiangzhike007@163.com> - 2.1.3-24
- enable make check
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.1.3-23 * Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.1.3-23
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git - DESC: delete -Sgit from %autosetup, and delete BuildRequires git