!111 [sync] PR-109: 打开容器与算法类子库的回归测试

From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2022-12-12 12:38:28 +00:00 committed by Gitee
commit 805adb2fa9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,36 @@
From 1d176e542576e7e584eccd3e2badca33231768c1 Mon Sep 17 00:00:00 2001
From: Liu Zixian <liuzixian4@huawei.com>
Date: Mon, 12 Dec 2022 20:12:26 +0800
Subject: [PATCH] Avoid gcc bugs
This testcase triggers a gcc optimization bug.
See https://gitee.com/src-openeuler/gcc/issues/I65UF9
Signed-off-by: Liu Zixian <liuzixian4@huawei.com>
---
libs/icl/test/fix_tickets_/fix_tickets.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libs/icl/test/fix_tickets_/fix_tickets.cpp b/libs/icl/test/fix_tickets_/fix_tickets.cpp
index 0232c3194..fc207e3f0 100644
--- a/libs/icl/test/fix_tickets_/fix_tickets.cpp
+++ b/libs/icl/test/fix_tickets_/fix_tickets.cpp
@@ -74,6 +74,7 @@ BOOST_AUTO_TEST_CASE(ticket_6095_Marvin_Sielenkemper_isEmptyTest)
BOOST_CHECK( icl::is_empty(Interval::open(max, max)));
}
+#ifndef __GNUC__
BOOST_AUTO_TEST_CASE(ticket_6095_Marvin_Sielenkemper_totalRangeTest)
{
typedef int Value;
@@ -90,6 +91,7 @@ BOOST_AUTO_TEST_CASE(ticket_6095_Marvin_Sielenkemper_totalRangeTest)
BOOST_CHECK_EQUAL(intervals.iterative_size(), 3);
}
+#endif
BOOST_AUTO_TEST_CASE(test_ticket_7871)
{
--
2.36.1

View File

@ -2,7 +2,7 @@
Name: boost
Version: 1.78.0
Release: 14
Release: 15
Summary: The free peer-reviewed portable C++ source libraries
License: Boost Software License 1.0
URL: http://www.boost.org
@ -29,6 +29,7 @@ Patch6: boost-1.78-filesystem-Use-O_NONBLOCK-instead-of-O_NDELAY.patch
Patch9000: boost-1.78-python-Update-call_method-hpp.patch
Patch9001: boost_1_78_0-sw.patch
Patch9002: boost-1.78-graph-Skip-performance-test.patch
Patch9003: boost-1.78-icl-Avoid-gcc-bugs.patch
Requires: %{name}-atomic%{?_isa} = %{version}-%{release}
Requires: %{name}-chrono%{?_isa} = %{version}-%{release}
@ -299,6 +300,9 @@ cd status
../b2 %{?_smp_mflags} %{opt_feature} cxxflags="$RPM_OPT_FLAGS" %{boost_macros} \
--include-tests=algorithm,graph,intrusive,dynamic_bitset,property_map,crc,lexical_cast,range \
--exclude-tests=mpi,graph_parallel
../b2 %{?_smp_mflags} %{opt_feature} cxxflags="$RPM_OPT_FLAGS" %{boost_macros} \
--include-tests=bimap,circular_buffer,container,heap,icl,lockfree,logic,multi_array,multi_index,poly_collection,property_tree,ptr_container,sort \
--exclude-tests=container_hash
%install
./b2 %{b2_options} \
@ -448,6 +452,9 @@ find libs -name example -exec cp {} boost-example --parents -r \;
%{_libdir}/*.a
%changelog
* Mon Dec 12 2022 Liu Zixian <liuzixian4@huawei.com> - 1.78.0-15
- enable more regression tests to covers commonly used container libraries
* Mon Dec 12 2022 Liu Zixian <liuzixian4@huawei.com> - 1.78.0-14
- backport master build commands and enable some regression test