Test component8_in_a_box.geo fails if OpenCASCADE support not configured
I configure and build GMSH 2.11.0 without support for OpenCASCADE. Upon running make test
test 19/37 gmsh-2.11.0-source/demos/component8_in_a_box.geo fails with the following output:
19/37 Testing: ../gmsh-2.11.0-source/demos/component8_in_a_box.geo
19/37 Test: ../gmsh-2.11.0-source/demos/component8_in_a_box.geo
Command: "/tmp/nix-build-gmsh-2.11.0.drv-0/build/gmsh" "../gmsh-2.11.0-source/demos/component8_in_a_box.geo" "-3" "-nopopup" "-o" "./tmp.msh"
Directory: /tmp/nix-build-gmsh-2.11.0.drv-0/build
"../gmsh-2.11.0-source/demos/component8_in_a_box.geo" start time: Dec 01 21:50 UTC
Output:
----------------------------------------------------------
Info : Running '/tmp/nix-build-gmsh-2.11.0.drv-0/build/gmsh ../gmsh-2.11.0-source/demos/component8_in_a_box.geo -3 -nopopup -o ./tmp.msh' [Gmsh 2.11.0, 1 node, max. 1 thread]
Info : Started on Tue Dec 1 21:50:13 2015
Info : Reading '../gmsh-2.11.0-source/demos/component8_in_a_box.geo'...
Info : Reading '../gmsh-2.11.0-source/demos/component8.step'...
Error : Gmsh must be compiled with Open CASCADE support to load '../gmsh-2.11.0-source/demos/component8.step'
Info : Done reading '../gmsh-2.11.0-source/demos/component8.step'
Error : Error loading '../gmsh-2.11.0-source/demos/component8.step'
Error : Unknown surface 10027
Info : Done reading '../gmsh-2.11.0-source/demos/component8_in_a_box.geo'
Info : Meshing 1D...
Info : Meshing curve 10001 (Line)
Warning : Curve 10001 has a zero length
Info : Done meshing 1D (0 s)
Info : Meshing 2D...
Info : Meshing surface 10006 (Plane, Delaunay)
Info : Degenerated mesh on edge 10001
Info : Degenerated mesh on edge 10001
Info : Degenerated mesh on edge 10001
Info : Degenerated mesh on edge 10001
Warning : Mesh Generation of Model Face 10006 Skipped: Only 0 mesh vertices on the contours
Info : Done meshing 2D (4.91142e-05 s)
Info : Meshing 3D...
Info : Delaunay Meshing 1 volumes with 1 connected components
Info : Meshing volume 10031 (Delaunay)
Error : Self intersecting surface mesh, computing intersections (this could take a while)
Error : Surface mesh is wrong, cannot do the 3D mesh
Error: The point set is trivial.
Initializing memorypools.
tetrahedron per block: 8188.
Size of a point: 128 bytes.
Size of a tetrahedron: 96 (96) bytes.
Size of a shellface: 200 (200) bytes.
Error: The point set is trivial.
Info : Done meshing 3D (0 s)
Info : 1 vertices 2 elements
Error : ------------------------------
Error : Mesh generation error summary
Error : 2 warnings
Error : 2 errors
Error : Check the full log for details
Error : ------------------------------
Info : Writing './tmp.msh'...
Info : Done writing './tmp.msh'
Info : Stopped on Tue Dec 1 21:50:13 2015
<end of output>
Test time = 0.01 sec
----------------------------------------------------------
Test Failed.
It seems to me this test should be skipped if OpenCASCADE support is not configured.