From 3a3c2e558e4d2279de864b5bdca87818ab72b7d9 Mon Sep 17 00:00:00 2001 From: yangl777 Date: Tue, 21 Nov 2023 14:35:12 +0800 Subject: [PATCH] enabled DT testcase (cherry picked from commit c7caa6e7fd6a910fb8eab72ea49f811d6944ae06) --- OpenIPMI.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/OpenIPMI.spec b/OpenIPMI.spec index 52c0218..06e54e7 100644 --- a/OpenIPMI.spec +++ b/OpenIPMI.spec @@ -1,6 +1,6 @@ Name: OpenIPMI Version: 2.0.32 -Release: 2 +Release: 3 Summary: IPMI (Intelligent Platform Management Interface) library and tools License: LGPLv2+ and GPLv2+ or BSD URL: https://sourceforge.net/projects/openipmi/ @@ -92,6 +92,12 @@ echo ".so man1/openipmish.1" > %{buildroot}%{_mandir}/man1/ipmish.1 %delete_la +%check +#Ensure that the library file in the corresponding directory can be obtained during testcase execution +sed -i 's#-lgdbm#-lgdbm -Wl,--rpath=\\$progdir:\\$progdir/../../utils/.libs#g' unix/test_handlers +sed -i 's#-lpthread#-lpthread -Wl,--rpath=\\$progdir:\\$progdir/../../utils/.libs:\\$progdir/../../unix/.libs#g' lanserv/ipmi_sim +make check + %post %systemd_post ipmi.service @@ -142,6 +148,12 @@ echo ".so man1/openipmish.1" > %{buildroot}%{_mandir}/man1/ipmish.1 %exclude %{_mandir}/man1/openipmigui.1 %changelog +* Tue Nov 21 2023 yanglu - 2.0.32-3 +- Type:enhancement +- CVE:NA +- SUG:NA +- DESC:enable test + * Sat Apr 01 2023 yanglu - 2.0.32-2 - Type:bugfix - CVE:NA -- Gitee