add check
Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
This commit is contained in:
parent
e910f83519
commit
c9d7e0c217
27
iSulad.spec
27
iSulad.spec
@ -1,5 +1,5 @@
|
|||||||
%global _version 2.1.1
|
%global _version 2.1.1
|
||||||
%global _release 2
|
%global _release 3
|
||||||
%global is_systemd 1
|
%global is_systemd 1
|
||||||
%global enable_shimv2 1
|
%global enable_shimv2 1
|
||||||
%global is_embedded 1
|
%global is_embedded 1
|
||||||
@ -38,6 +38,10 @@ BuildRequires: sqlite-devel
|
|||||||
Requires: sqlite
|
Requires: sqlite
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{defined openeuler}
|
||||||
|
BuildRequires: gtest-devel gmock-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%define lcrver_lower 2.1.1-0
|
%define lcrver_lower 2.1.1-0
|
||||||
%define lcrver_upper 2.1.2-0
|
%define lcrver_upper 2.1.2-0
|
||||||
|
|
||||||
@ -76,12 +80,27 @@ Runtime Daemon, written by C.
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
%if 0%{?enable_shimv2}
|
%if 0%{?enable_shimv2}
|
||||||
|
%if %{defined openeuler}
|
||||||
|
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_SHIM_V2=ON -DENABLE_UT=ON ../
|
||||||
|
%else
|
||||||
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_SHIM_V2=ON ../
|
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_SHIM_V2=ON ../
|
||||||
|
%endif
|
||||||
|
%else
|
||||||
|
%if %{defined openeuler}
|
||||||
|
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_UT=ON ../
|
||||||
%else
|
%else
|
||||||
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} -DCMAKE_INSTALL_PREFIX=/usr ../
|
%cmake -DDEBUG=ON -DCMAKE_SKIP_RPATH=TRUE -DLIB_INSTALL_DIR=%{_libdir} -DCMAKE_INSTALL_PREFIX=/usr ../
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{defined openeuler}
|
||||||
|
cd build
|
||||||
|
# registry_images_ut and volume_ut must run with root user
|
||||||
|
ctest -E "registry_images_ut|volume_ut"
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
cd build
|
cd build
|
||||||
@ -237,6 +256,12 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 16 2023 zhangxiaoyu <zhangxiaoyu58@huawei.com> - 2.1.1-3
|
||||||
|
- Type: bugfix
|
||||||
|
- ID: NA
|
||||||
|
- SUG: NA
|
||||||
|
- DESC: add check
|
||||||
|
|
||||||
* Mon Feb 06 2023 zhangxiaoyu <zhangxiaoyu58@huawei.com> - 2.1.1-2
|
* Mon Feb 06 2023 zhangxiaoyu <zhangxiaoyu58@huawei.com> - 2.1.1-2
|
||||||
- Type: update
|
- Type: update
|
||||||
- ID: NA
|
- ID: NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user