Initial commit
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@47 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
248f62cb17
commit
0b9d261d9b
13 changed files with 2049 additions and 0 deletions
77
tools/RegressionTest2/LokiTest.h
Normal file
77
tools/RegressionTest2/LokiTest.h
Normal file
|
@ -0,0 +1,77 @@
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Unit Test for Loki
|
||||
//
|
||||
// Copyright Terje Slettebø and Pavel Vozenilek 2002.
|
||||
//
|
||||
// Permission to use, copy, modify, and distribute this software for any
|
||||
// purpose is hereby granted without fee, provided that this copyright and
|
||||
// permissions notice appear in all copies and derivatives.
|
||||
//
|
||||
// This software is provided "as is" without express or implied warranty.
|
||||
//
|
||||
// Last update: September 16, 2002
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef LOKITEST_H
|
||||
#define LOKITEST_H
|
||||
|
||||
#include "TypelistTest.h"
|
||||
#include "TypeManipTest.h"
|
||||
#include "TypeTraitsTest.h"
|
||||
#include "SmallObjectTest.h"
|
||||
#include "SingletonTest.h"
|
||||
#include "SmartPtrTest.h"
|
||||
#include "FactoryTest.h"
|
||||
#include "AbstractFactoryTest.h"
|
||||
#include "AssocVectorTest.h"
|
||||
#include "FunctorTest.h"
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// LokiTest
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class LokiTest
|
||||
{
|
||||
public:
|
||||
LokiTest()
|
||||
{
|
||||
addTests();
|
||||
}
|
||||
|
||||
int result()
|
||||
{
|
||||
return unitTest.run("Unit Test",tests);
|
||||
}
|
||||
|
||||
private:
|
||||
void addTests()
|
||||
{
|
||||
tests.add(typelistTest);
|
||||
tests.add(typeManipTest);
|
||||
tests.add(typeTraitsTest);
|
||||
tests.add(smallObjectTest);
|
||||
tests.add(singletonTest);
|
||||
tests.add(smartPtrTest);
|
||||
tests.add(factoryTest);
|
||||
tests.add(abstractFactoryTest);
|
||||
tests.add(assocVectorTest);
|
||||
tests.add(functorTest);
|
||||
}
|
||||
|
||||
private:
|
||||
UnitTest unitTest;
|
||||
TestSuite tests;
|
||||
|
||||
TypelistTest typelistTest;
|
||||
TypeManipTest typeManipTest;
|
||||
TypeTraitsTest typeTraitsTest;
|
||||
SmallObjectTest smallObjectTest;
|
||||
SingletonTest singletonTest;
|
||||
SmartPtrTest smartPtrTest;
|
||||
FactoryTest factoryTest;
|
||||
AbstractFactoryTest abstractFactoryTest;
|
||||
AssocVectorTest assocVectorTest;
|
||||
FunctorTest functorTest;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue