[oce] 01/02: Disable BRepAlgoAPI test. (Closes: #798760)

Anton Gladky gladk at moszumanska.debian.org
Fri Oct 9 17:10:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

gladk pushed a commit to branch fix_798760_gladk
in repository oce.

commit e31c5233e0b67de195429e69a140dc1fe10cc0b7
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Thu Oct 8 22:19:56 2015 +0200

    Disable BRepAlgoAPI test. (Closes: #798760)
---
 debian/patches/disable_BRepAlgoAPI_text.patch | 42 +++++++++++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 43 insertions(+)

diff --git a/debian/patches/disable_BRepAlgoAPI_text.patch b/debian/patches/disable_BRepAlgoAPI_text.patch
new file mode 100644
index 0000000..6e2660c
--- /dev/null
+++ b/debian/patches/disable_BRepAlgoAPI_text.patch
@@ -0,0 +1,42 @@
+Description: disable BRepAlgoAPI test
+Author: Anton Gladky <gladk at debian.org>
+Bug-Debian: https://bugs.debian.org/798760
+Last-Update: 2015-10-08
+
+--- oce-0.15.orig/test/BRepAlgoAPI_test/boolean_ops.cpp
++++ oce-0.15/test/BRepAlgoAPI_test/boolean_ops.cpp
+@@ -5,34 +5,6 @@
+ 
+ #include <gtest/gtest.h>
+ 
+-TEST(BRepAlgoAPITestSuite, testCutBox)
+-{
+-    // create the first shape: a cube, a corner at the origin
+-    TopoDS_Solid box1 = (TopoDS_Solid) BRepPrimAPI_MakeBox(10.,10.,10.);
+-    ASSERT_FALSE(box1.IsNull());
+-    // the second shape: a smaller cube, a corner at the origin
+-    TopoDS_Solid box2 = (TopoDS_Solid) BRepPrimAPI_MakeBox(5.,5.,5.);
+-    ASSERT_FALSE(box2.IsNull());
+-    // boolean cut
+-    TopoDS_Shape shp_result = BRepAlgoAPI_Cut(box1,box2);
+-    ASSERT_FALSE(shp_result.IsNull());
+-    TopoDS_Shape shp_result2 = BRepAlgoAPI_Cut(box2,box1);
+-    ASSERT_FALSE(shp_result2.IsNull());
+-}
+-
+-TEST(BRepAlgoAPITestSuite, testCutCylSphere)
+-{
+-    // create the first shape: a sphere, centered at the origin
+-    TopoDS_Solid sphere = BRepPrimAPI_MakeSphere(10.);
+-    ASSERT_FALSE(sphere.IsNull());
+-    // the second shape: a cylinder cube, a corner at the origin
+-    TopoDS_Solid cylinder = BRepPrimAPI_MakeCylinder(5.,15.);
+-    ASSERT_FALSE(cylinder.IsNull());
+-    // boolean cut
+-    TopoDS_Shape shp_result = BRepAlgoAPI_Cut(sphere,cylinder);
+-    ASSERT_FALSE(shp_result.IsNull());
+-}
+-
+ int main(int argc, char **argv){
+   testing::InitGoogleTest(&argc, argv);
+   return RUN_ALL_TESTS();
diff --git a/debian/patches/series b/debian/patches/series
index bea9339..3e3fb9b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ speedup-BRepMesh_test.patch
 include-oce-config.patch
 fix-Mesa-failures.patch
 disable_Brep_unittest.patch
+disable_BRepAlgoAPI_text.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/oce.git



More information about the debian-science-commits mailing list