From b22d64e66d1f623ef033b09af0ceb551c37d2a69 Mon Sep 17 00:00:00 2001 From: panxiaohe Date: Mon, 27 Jun 2022 15:41:19 +0800 Subject: [PATCH] add make test --- libsepol.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libsepol.spec b/libsepol.spec index e81bac4..127fade 100644 --- a/libsepol.spec +++ b/libsepol.spec @@ -1,6 +1,6 @@ Name: libsepol Version: 3.1 -Release: 7 +Release: 8 Summary: SELinux binary policy manipulation library License: LGPLv2+ URL: https://github.com/SELinuxProject/selinux/wiki/Releases @@ -49,6 +49,7 @@ Patch39: backport-libsepol-cil-Reset-expandtypeattribute-rules-when-re.pa Patch40: backport-libsepol-cil-do-not-allow-0-in-quoted-strings.patch BuildRequires: gcc flex +BuildRequires: ncurses ncurses-devel CUnit-devel byacc bison flex-static libsepol-static >= 3.1 libselinux-devel >= 3.1 %description libsepol provides an API for the manipulation of SELinux binary @@ -78,6 +79,13 @@ make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" rm -rf %{buildroot} make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install +%check +rm -rf ../checkpolicy +mkdir ../checkpolicy +tar -zxf %_topdir/SOURCES/checkpolicy-3.1.tar.gz -C ../checkpolicy --strip-components 1 +make -C ../checkpolicy +make test + %pre %preun @@ -106,6 +114,9 @@ make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install %{_mandir}/man3/* %changelog +* Mon Jun 27 2022 panxiaohe - 3.1-8 +- add make test + * Tue Feb 15 2022 panxiaohe - 3.1-7 - libsepol/cil: do not allow \0 in quoted strings -- Gitee