浏览代码

Fix CGAL tests + try Travis without python.

Jérémie Dumas 6 年之前
父节点
当前提交
67edc94c8a
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 1 1
      .travis.yml
  2. 5 5
      tests/include/igl/copyleft/boolean/mesh_boolean.cpp

+ 1 - 1
.travis.yml

@@ -60,7 +60,7 @@ script:
 # Tutorials and tests
 - mkdir build
 - cd build
-- cmake -DCMAKE_BUILD_TYPE=$CONFIG -DLIBIGL_WITH_CGAL=ON -DEMBREE_ISA_AVX=OFF -DEMBREE_ISA_AVX2=OFF -DEMBREE_ISA_AVX512SKX=OFF ../
+- cmake -DCMAKE_BUILD_TYPE=$CONFIG -DLIBIGL_WITH_PYTHON=OFF -DLIBIGL_WITH_CGAL=ON -DEMBREE_ISA_AVX=OFF -DEMBREE_ISA_AVX2=OFF -DEMBREE_ISA_AVX512SKX=OFF ../
 - make -j 2
 - ctest --verbose
 - ccache --show-stats

+ 5 - 5
tests/include/igl/copyleft/boolean/mesh_boolean.cpp

@@ -50,7 +50,9 @@ namespace mesh_boolean_test {
         REQUIRE (2 - 2 * genus == euler);
     }
 
-TEST_CASE("MeshBoolean: TwoCubes", "[igl/copyleft/boolean]")
+}
+
+TEST_CASE("MeshBoolean: TwoCubes", "[igl/copyleft/boolean]") {
     Eigen::MatrixXd V1;
     Eigen::MatrixXi F1;
     test_common::load_mesh("two-boxes-bad-self-union.ply", V1, F1);
@@ -70,7 +72,7 @@ TEST_CASE("MeshBoolean: TwoCubes", "[igl/copyleft/boolean]")
     assert_genus_eq(Vo, Fo, 0);
 }
 
-TEST_CASE("MeshBoolean: MinusTest", "[igl/copyleft/boolean]")
+TEST_CASE("MeshBoolean: MinusTest", "[igl/copyleft/boolean]") {
     // Many thanks to Eric Yao for submitting this test case.
     Eigen::MatrixXd V1, V2, Vo;
     Eigen::MatrixXi F1, F2, Fo;
@@ -86,7 +88,7 @@ TEST_CASE("MeshBoolean: MinusTest", "[igl/copyleft/boolean]")
     assert_genus_eq(Vo, Fo, 1);
 }
 
-TEST_CASE("MeshBoolean: IntersectWithSelf", "[igl/copyleft/boolean]")
+TEST_CASE("MeshBoolean: IntersectWithSelf", "[igl/copyleft/boolean]") {
     Eigen::MatrixXd V1, Vo;
     Eigen::MatrixXi F1, Fo;
     test_common::load_mesh("cube.obj", V1, F1);
@@ -99,5 +101,3 @@ TEST_CASE("MeshBoolean: IntersectWithSelf", "[igl/copyleft/boolean]")
     assert_is_manifold(Vo, Fo);
     assert_genus_eq(Vo, Fo, 0);
 }
-
-}