diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-04-10 16:02:07 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-04-10 16:02:07 +0000 |
commit | b6e100b94b12f3f92ec025dc2363eaf7c0ee6662 (patch) | |
tree | 7fa6f7c9450f0ef866e50e1d096ad854a5892aa0 /src/unit/sfile.cpp | |
parent | 5a0d7856dc265580cebaa833e0367d03ef21bbc3 (diff) | |
download | libbu++-b6e100b94b12f3f92ec025dc2363eaf7c0ee6662.tar.gz libbu++-b6e100b94b12f3f92ec025dc2363eaf7c0ee6662.tar.bz2 libbu++-b6e100b94b12f3f92ec025dc2363eaf7c0ee6662.tar.xz libbu++-b6e100b94b12f3f92ec025dc2363eaf7c0ee6662.zip |
Well, we've got the basis of a workable unit test harness thing. There should
be a few more add-ons to it, but it works just fine, and eventually it should
cover command line options and creating logs, and possibly even provide output
functionality so that output from tests can be logged and kept track of well.
Diffstat (limited to '')
-rw-r--r-- | src/unit/sfile.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/unit/sfile.cpp b/src/unit/sfile.cpp new file mode 100644 index 0000000..7b19942 --- /dev/null +++ b/src/unit/sfile.cpp | |||
@@ -0,0 +1,27 @@ | |||
1 | #include "unitsuite.h" | ||
2 | |||
3 | class Unit : public Bu::UnitSuite | ||
4 | { | ||
5 | public: | ||
6 | Unit() | ||
7 | { | ||
8 | setName("SFile"); | ||
9 | addTest( Unit::test ); | ||
10 | } | ||
11 | |||
12 | virtual ~Unit() { } | ||
13 | |||
14 | // | ||
15 | // Tests go here | ||
16 | // | ||
17 | void test() | ||
18 | { | ||
19 | unitTest( 1 == 1 ); | ||
20 | } | ||
21 | }; | ||
22 | |||
23 | int main( int argc, char *argv[] ) | ||
24 | { | ||
25 | return Unit().run( argc, argv ); | ||
26 | } | ||
27 | |||