Test application now takes 'seed' and 'repeat' command-line args

This commit is contained in:
Benoit Jacob
2007-12-03 08:35:23 +00:00
parent e05f29191e
commit 5abaaf9688
4 changed files with 93 additions and 18 deletions

View File

@@ -32,6 +32,9 @@
#include <cstdlib>
#include <ctime>
#define DEFAULT_REPEAT 50
#define REPEAT for(int repeat_iteration = 0; repeat_iteration < m_repeat; repeat_iteration++)
namespace Eigen {
class EigenTest : public QObject
@@ -39,11 +42,14 @@ class EigenTest : public QObject
Q_OBJECT
public:
EigenTest();
EigenTest(int repeat) : m_repeat(repeat) {}
private slots:
void testBasicStuff();
void testAdjoint();
protected:
int m_repeat;
};
} // end namespace Eigen