Oliver Tappe
58481f0f6e
* fix gcc4 build of cppunit library by explicitly spelling out std:: in
...
the headers and importing the required classes in the implementation files
* automatic whitespace cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 19:04:52 +00:00
Ingo Weinhold
bc3955fea5
Preparations for removing __BEOS__ from the compiler defines.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-23 21:46:26 +00:00
Axel Dörfler
48c68671a2
Fixed the build of the cppunit stuff; if you are using IMPORT/EXPORT you should
...
make sure they are defined.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-05 16:19:03 +00:00
Ingo Weinhold
1b89aa98ff
Made the Unit test stuff a bit more mwcc/mwld friendly. It still doesn't build right out of the box with our build system, but with a few changes to the build system it can be done (I'm not going to do that, though).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6640 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 21:38:04 +00:00
Ingo Weinhold
aa94570a34
Changes to make the CPPUnit build on PPC (with mwcc *shudder*).
...
Courtesy of Oliver Tappe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-17 19:57:58 +00:00
Ingo Weinhold
257e63ba7f
Added support for asserting debugger() calls. The macro CPPUNIT_ASSERT_DEBUGGER shall be used in that case.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-10 00:45:18 +00:00
Ingo Weinhold
e79e4e7c9e
A little library for patching symbols at runtime.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-10 00:38:35 +00:00
Axel Dörfler
06b932a49d
Fixed compilation of many tests under Dano.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-13 02:26:22 +00:00
Ingo Weinhold
4afae676ad
Added support for multiple BTestHandlers in a BTestApp.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-09 12:47:37 +00:00
shatty
da199a7e78
fixed newline at end of file.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-28 00:11:29 +00:00
Tyler Dauwalder
bb24170e40
Added initial timing support. Individual test cases now display run time
...
information for verbosity >= v2. I'll probably add a command-line
toggle specifically for timing info someday. I also hope to add per-test
and per-suite run time info eventually as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 05:16:26 +00:00
Tyler Dauwalder
7a89b5cb9e
Added Equals() function, which sadly I haven't tested
...
(I just stole it from StorageKit::BasicTest, the version of
which has been proven many times over ;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-24 09:30:20 +00:00
Tyler Dauwalder
3f6453cd59
Added v4 verbosity level
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-24 00:12:02 +00:00
Tyler Dauwalder
242a6db230
Changed TestApp to BTestApp for sake of consitency with
...
the rest of the test classes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 22:27:43 +00:00
Ingo Weinhold
b4793125a8
Fixed warnings (method shadowing).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 00:51:08 +00:00
Tyler Dauwalder
a6b33ea3de
+ Moved BAutolock and BArchivable over to new testing framework.
...
+ Added ability to specify entire suites to the UnitTester program.
+ BAutolock and BArchivable tests now use CPPUNIT_ASSERT, but BLocker
tests crash for some unknown reason with said assertion, so plain old vanilla
assert() is still used. I'll look into this later.
+ BArchivable tests that try to load a RemoteTestObject are failing
because the resource file doesn't appear to be linked into
libsupporttest_RemoteTestObject.so.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-19 06:45:28 +00:00
Tyler Dauwalder
9285de5124
+ Started migrating Support Kit to new testing framework
...
+ Migrated BLocker tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-18 05:32:00 +00:00
Tyler Dauwalder
aad997bd6c
Finished migrating Storage Kit tests to new framework.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-18 01:03:19 +00:00
Tyler Dauwalder
d1f6c38f0d
Unit testing update:
...
- Verbosity is now honored globally
- Added BTestCase::Outputf()
- Migrated BNode, BStatable, BDirectory, and BPath tests
- Added CommonTestLib, TestLib, and R5TestLib rules to Jamrules
- Updated Jamfiles for unit testing stuff
- Probably a few other things I've forgotten
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-17 10:50:55 +00:00
Tyler Dauwalder
f1544e394c
NextSubTest() code now honors BTestShell::Verbosity() levels
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@238 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 06:53:26 +00:00
Tyler Dauwalder
34f99490e5
Dynamic loading updates
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@237 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 06:52:57 +00:00
Tyler Dauwalder
e2a04f50a7
Initial checkin
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 06:52:17 +00:00
Tyler Dauwalder
36b1a33703
Rewritten completely
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-15 06:51:57 +00:00
Tyler Dauwalder
0a99bdf489
Fixed multithreaded NextSubTest() output problems
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 20:30:45 +00:00
Tyler Dauwalder
40ea65d602
Semaphore based SyncObject
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 20:30:24 +00:00
Tyler Dauwalder
a319112563
Sounds like BAutolock ... :-)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-12 20:30:03 +00:00
Tyler Dauwalder
530d2bc9fe
Big CppUnit update
...
+ Initial threaded test support
+ Integrated CppUnitShell code into TestShell
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@75 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 03:28:37 +00:00
Tyler Dauwalder
aa3f51a786
Integrated into TestShell.h, thus no longer needed, thus removed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@74 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 03:26:27 +00:00
Tyler Dauwalder
cc449ec9d1
Not currently used, so removed for the moment at least.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@73 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 03:25:42 +00:00
ejakowatz
52a3801208
It is accomplished ...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 12:24:59 +00:00