History log of /haiku/src/tools/cppunit/TestShell.cpp
Revision Date Author Comments
# df8b692a 14-Aug-2018 Kacper Kasper <kacperkasper@gmail.com>

Revive unit tests

* Fix build on 64-bit.
* Test suite can now run from start to finish.
* Changes in OutlineListView test need an explanation:
for some reason when BApplication is created on heap, be_app is not
reset. This causes other tests to crash due to second BApplication
object being created.

Change-Id: Ic7d55f4622192f83572bfd83fa37f1f5fd641e22
Reviewed-on: https://review.haiku-os.org/465
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 4c3f62c8 29-Apr-2017 Axel Dörfler <axeld@pinc-software.de>

cppunit: Fixed build with gcc 5 on Haiku.


# 65f5e1e1 28-May-2016 Mark Hellegers <mark@firedisk.net>

Fix #12799: Enable elf symbol patching for Haiku

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>


# 73e180c9 18-Jun-2016 Augustin Cavalier <waddlesplash@gmail.com>

Revert "cppunit: Enable elf symbol patching for Haiku."

This reverts commit 56430ad8002b8fd1ac69b590e9cc130de6d9e852.

It builds on my machine, but apparently the buildbots choke on it...


# 56430ad8 28-May-2016 Mark Hellegers <mark@firedisk.net>

cppunit: Enable elf symbol patching for Haiku.

Fixes #12799.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>


# 9aec6561 10-Jun-2014 Oliver Tappe <zooey@hirschkaefer.de>

More build fixes of unittests, this time for x86_64.


# 7d5fd932 17-Jun-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Some style cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42227 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 58481f0f 02-May-2009 Oliver Tappe <zooey@hirschkaefer.de>

* 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


# 1b89aa98 18-Feb-2004 Ingo Weinhold <ingo_weinhold@gmx.de>

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


# aa94570a 17-Feb-2004 Ingo Weinhold <ingo_weinhold@gmx.de>

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


# 257e63ba 09-Nov-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

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


# 66abd4d0 26-Aug-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed a few warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4381 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c5ff4aa6 10-Aug-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

It became apparent that in order to assure obos tests are run
with obos libs and r5 tests are run with r5 libs, two separate
unit testing programs in different directories would be needed.
Thus UnitTester is now just a shell program that calls the
appropriate unittester/UnitTester or unittester_r5/UnitTester_r5
program.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@703 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f6453cd 23-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

Added v4 verbosity level


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@414 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a6b33ea3 19-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

+ 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


# aad997bd 17-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

Finished migrating Storage Kit tests to new framework.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@292 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d1f6c38f 17-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

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


# 20a45908 15-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

Added dynamic test loading, plus a hack to allow global access to a BTestShell var


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@231 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 03aa30ce 10-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

Big CppUnit Update
+ Initial threaded test support
+ Integrated CppUnitShell code into TestShell


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@77 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9aec6561a8ea8c75f00f16ab3d1a757bfe0cfb18 10-Jun-2014 Oliver Tappe <zooey@hirschkaefer.de>

More build fixes of unittests, this time for x86_64.


# 7d5fd9326c5a7879e875b87653f8057e694faf8d 17-Jun-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Some style cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42227 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 58481f0f6ef1a61ba07283f012cafbc2ed874ead 02-May-2009 Oliver Tappe <zooey@hirschkaefer.de>

* 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


# 1b89aa98ffe3057ab801dab67b9f5de6d1f933a5 18-Feb-2004 Ingo Weinhold <ingo_weinhold@gmx.de>

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


# aa94570a34695672df9b47adda2257f75d8da880 17-Feb-2004 Ingo Weinhold <ingo_weinhold@gmx.de>

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


# 257e63ba7f655d72955a2110dc028a3356cebe5a 09-Nov-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

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


# 66abd4d0a6e5f7cf9c41bca61b88d2f15bc18ca1 26-Aug-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed a few warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4381 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c5ff4aa6f5bc5d28639250c8c93e9ee9a3d9b8fa 10-Aug-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

It became apparent that in order to assure obos tests are run
with obos libs and r5 tests are run with r5 libs, two separate
unit testing programs in different directories would be needed.
Thus UnitTester is now just a shell program that calls the
appropriate unittester/UnitTester or unittester_r5/UnitTester_r5
program.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@703 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f6453cd59ac8d9084ef5890246eca9c7df8bef1 23-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

Added v4 verbosity level


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@414 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a6b33ea3deb0df368b529219081f04f443aab403 19-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

+ 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


# aad997bd6c9035ac0185bda5c52bd1ba2dd8a47d 17-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

Finished migrating Storage Kit tests to new framework.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@292 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d1f6c38f0d8029fda3c77d45dde4c9fa53e2e75b 17-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

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


# 20a45908ba16835623936d230d412d8cfa66bf4b 15-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

Added dynamic test loading, plus a hack to allow global access to a BTestShell var


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@231 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 03aa30ce94224e951fd5bd8f31d7574f683416be 10-Jul-2002 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

Big CppUnit Update
+ Initial threaded test support
+ Integrated CppUnitShell code into TestShell


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@77 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96