Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 7e3e12a

Browse files
committed
disable complex tests in debug
1 parent 0bfb223 commit 7e3e12a

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

tests/src/tests/distance/test_edge_edge.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ TEST_CASE(
334334
Eigen::VectorXd fgrad;
335335
fd::finite_gradient(x, [&](const Eigen::VectorXd &y) {
336336
return smooth_edge3_normal_term(y.head(3), y.segment(3, 3), y.segment(6, 3), y.segment(9, 3), y.segment(12, 3), alpha, beta, otypes);
337-
}, fgrad, fd::AccuracyOrder::SECOND, 1e-7);
337+
}, fgrad, fd::AccuracyOrder::SECOND, 1e-6);
338338

339-
CHECK((fgrad - grad).norm() / 1e-5 <= grad.norm());
339+
CHECK((fgrad - grad).norm() / 1e-7 <= grad.norm());
340340

341341
Eigen::MatrixXd fhess;
342342
fd::finite_jacobian(x, [&](const Eigen::VectorXd &y) {

tests/src/tests/potential/test_smooth_potential.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@
1616

1717
using namespace ipc;
1818

19+
#if defined(NDEBUG) && !defined(WIN32)
20+
std::string tagsopt = "[smooth_potential]";
21+
#else
22+
std::string tagsopt = "[.][smooth_potential]";
23+
#endif
24+
1925
TEST_CASE(
2026
"Number of contact pairs",
21-
"[smooth_potential]")
27+
tagsopt)
2228
{
2329
const BroadPhaseMethod method{0};
2430

@@ -112,7 +118,7 @@ TEST_CASE(
112118

113119
TEST_CASE(
114120
"Smooth barrier potential full gradient and hessian 3D",
115-
"[smooth_potential]")
121+
tagsopt)
116122
{
117123
const BroadPhaseMethod method = BroadPhaseMethod::HASH_GRID;
118124
const bool adaptive_dhat = GENERATE(true, false);
@@ -368,7 +374,7 @@ TEST_CASE(
368374

369375
TEST_CASE(
370376
"Benchmark on OIPC",
371-
"[smooth_potential]")
377+
tagsopt)
372378
{
373379
const BroadPhaseMethod method{0};
374380

0 commit comments

Comments
 (0)