enable make check

(cherry picked from commit 4340c16069546792edffc4d3447217cce5aa8c6b)
This commit is contained in:
yixiangzhike 2023-05-25 10:44:02 +08:00 committed by openeuler-sync-bot
parent 44b8145fcf
commit b0825ac27c

View File

@ -2,7 +2,7 @@
Name: CUnit
Version: 2.1.3
Release: 22
Release: 23
Summary: A Unit Testing Framework for C
License: LGPLv2+
URL: http://cunit.sourceforge.net/
@ -35,7 +35,7 @@ find -name *.c -exec chmod -x {} \;
%build
autoreconf -fi
%configure --disable-static
%configure --disable-static --enable-test
%make_build
%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}
done
%check
pushd CUnit/Sources/Test/
./test_cunit
popd
%pre
%preun
@ -76,6 +81,12 @@ done
%{_mandir}/man3/CUnit.3*
%changelog
* Thu May 25 2023 yixiangzhike<yixiangzhike007@163.com> - 2.1.3-23
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:enable make check
* Wed Nov 25 2020 yangzhuangzhuang<yangzhuangzhuang1@huawei.com> - 2.1.3-22
- Type:enhancement
- ID:NA