summaryrefslogtreecommitdiff
path: root/src/stable/unitsuite.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-04-14 18:04:52 +0000
committerMike Buland <eichlan@xagasoft.com>2012-04-14 18:04:52 +0000
commitda1de5cdb5c42ce811a66d377789e585042b98c7 (patch)
tree44f530399c603252535232ae6483abce734ca828 /src/stable/unitsuite.h
parent49d9fa3c2435b8e97ffdc42e40a880a3dad82f8a (diff)
downloadlibbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.tar.gz
libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.tar.bz2
libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.tar.xz
libbu++-da1de5cdb5c42ce811a66d377789e585042b98c7.zip
Added support for running subsets of unit tests to Bu::UnitSuite, now just list
the names of the tests you want to run on the command line. Also, fixed some minor issues in two of the test suites.
Diffstat (limited to 'src/stable/unitsuite.h')
-rw-r--r--src/stable/unitsuite.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stable/unitsuite.h b/src/stable/unitsuite.h
index 2250a4d..6915fb4 100644
--- a/src/stable/unitsuite.h
+++ b/src/stable/unitsuite.h
@@ -13,6 +13,7 @@
13#include "bu/string.h" 13#include "bu/string.h"
14#include "bu/file.h" 14#include "bu/file.h"
15#include "bu/array.h" 15#include "bu/array.h"
16#include "bu/hash.h"
16 17
17namespace Bu 18namespace Bu
18{ 19{
@@ -103,6 +104,7 @@ namespace Bu
103 104
104 private: 105 private:
105 int onListCases( Bu::Array<Bu::String> aParam ); 106 int onListCases( Bu::Array<Bu::String> aParam );
107 int onAddTest( Bu::Array<Bu::String> aParam );
106 108
107 private: 109 private:
108 typedef struct TestInfo 110 typedef struct TestInfo
@@ -124,6 +126,8 @@ namespace Bu
124 int iStepCount; 126 int iStepCount;
125 int iProgress; 127 int iProgress;
126 time_t tLastUpdate; 128 time_t tLastUpdate;
129
130 Bu::Hash<Bu::String, bool> hSelTests;
127 }; 131 };
128 132
129Bu::Formatter &operator<<( Bu::Formatter &f, const Bu::UnitSuite::Expect &e ); 133Bu::Formatter &operator<<( Bu::Formatter &f, const Bu::UnitSuite::Expect &e );