Fix tests and re-introduce tests into build

Code style fix
This commit is contained in:
Lorenz Meier
2016-09-26 21:11:35 +02:00
committed by Lorenz Meier
parent 1909f2b02f
commit cf671b5134
28 changed files with 48 additions and 78 deletions
+2 -2
View File
@@ -54,6 +54,8 @@
#include <systemlib/err.h>
#include <drivers/drv_hrt.h>
#include "tests_main.h"
class MathlibTest : public UnitTest
{
public:
@@ -73,8 +75,6 @@ private:
bool testQuaternionRotate();
};
#include "tests.h"
#define TEST_OP(_title, _op) { unsigned int n = 30000; hrt_abstime t0, t1; t0 = hrt_absolute_time(); for (unsigned int j = 0; j < n; j++) { _op; }; t1 = hrt_absolute_time(); PX4_INFO(_title ": %.6fus", (double)(t1 - t0) / n); }
using namespace math;