Skip to content
Snippets Groups Projects
Commit bb659faf authored by olivier stasse's avatar olivier stasse Committed by Valenza Florian
Browse files

[unittest] Forces INTENSE_TESTING flag to have 1000 000 tests.

Necessary to avoid travis time out trigger.
parent d7c3c0a9
No related branches found
Tags v1.0.2
No related merge requests found
......@@ -17,7 +17,12 @@ void timings(const se3::Model & model, se3::Data& data, long flag)
using namespace se3;
StackTicToc timer(StackTicToc::US);
#ifdef NDEBUG
#ifdef _INTENSE_TESTING_
const int NBT = 1000*1000;
#else
const int NBT = 10;
#endif
#else
const int NBT = 1;
std::cout << "(the time score in debug mode is not relevant) " ;
......
......@@ -13,7 +13,12 @@ void timings(const se3::Model & model, se3::Data& data, long flag)
using namespace se3;
StackTicToc timer(StackTicToc::US);
#ifdef NDEBUG
#ifdef _INTENSE_TESTING_
const int NBT = 1000*1000;
#else
const int NBT = 10;
#endif
#else
const int NBT = 1;
std::cout << "(the time score in debug mode is not relevant) " ;
......@@ -95,6 +100,7 @@ void assertValues(const se3::Model & model, se3::Data& data)
rnea( model,data,q,qdot,qddot );
Motion v = data.oMi[idx].act( data.v[idx] );
assert( v.toVector().isApprox( Jrh*qdot ));
v.toVector().isApprox(Jrh*qdot);
}
{ /* Test local jacobian: rhJrh == rhXo oJrh */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment