History log of /haiku/src/tests/kits/support/SupportKitTestAddon.cpp
Revision Date Author Comments
# c68590fd 18-Sep-2022 Niels Sascha Reedijk <niels.reedijk@gmail.com>

Tests: fix unittest build and include BMemoryRingIO shared tests

When change 2966 was merged as hrev56269, it was decided to first introduce
this in libshared instead of libbe.so. The test was moved accordingly, but
not all the code in the unittests was properly updated. This change completes
it.

Note that the test currently crashes, so it needs more investigation whether
that is a test issue or a BMemoryRingIO issue. Fixing this is beyond the
scope of this change.

Change-Id: I0f61d1dd013da904b3e4545db11fefa9da2da0a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5676
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 86fa1c21 29-Jun-2020 Leorize <leorize+oss@disroot.org>

Shared Kit: Introduce BMemoryRingIO, a thread-safe ring buffer

This commit introduces a simple thread-safe ring buffer implementation
based on top of BDataIO. The main use case for this class will be to
implement shared buffers between threads for the upcoming refactoring
of Services Kit.

Change-Id: I526bc044b28c91496ad996fabebe538e75647f2c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2966
Reviewed-by: Jacob Secunda <secundaja@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 4f88977f 16-Jun-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Add a first test for BDateTime.

* We need to write more of those.


# 296047bc 27-Jun-2004 Axel Dörfler <axeld@pinc-software.de>

Started writing byte order test. Note, I put __swap_int16() tests here, too,
although they don't belong here (as they test libroot.so functions). They
won't even test our functions for now; there currently is no libopenbeos.so
aequivalent for our libroot.so.
Tests for swap_data() and is_type_swapped() (which do belong here) are
still missing :)


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


# bfdb37cc 07-Sep-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Check in per Jeremy Rand: Added BBlockCache unit tests.


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


# f4c91e72 28-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Integrate BString tests


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


# 459a94c1 27-Sep-2002 shatty <shatty@nowhere.fake>

fixed newline at end of file errors.
also fixed small include bug in SupportKitTestAddon.cpp.


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


# 8adaaec7 27-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

More tests for BMemoryIO and BMallocIO


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


# 3f541a71 25-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

First tests for BMemoryIO


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1176 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


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

+ 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


# 4f88977f9ab60d7d71594887565595e40e6df0a8 16-Jun-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Add a first test for BDateTime.

* We need to write more of those.


# 296047bc9df68706bd973420639837579854474b 27-Jun-2004 Axel Dörfler <axeld@pinc-software.de>

Started writing byte order test. Note, I put __swap_int16() tests here, too,
although they don't belong here (as they test libroot.so functions). They
won't even test our functions for now; there currently is no libopenbeos.so
aequivalent for our libroot.so.
Tests for swap_data() and is_type_swapped() (which do belong here) are
still missing :)


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


# bfdb37cc03e4f014afeac056e132f19e74aaf793 07-Sep-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Check in per Jeremy Rand: Added BBlockCache unit tests.


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


# f4c91e72e3758f381970a29b37be15902bf7cbba 28-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Integrate BString tests


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


# 459a94c163f127d416a0119993ecc1205b472e0c 27-Sep-2002 shatty <shatty@nowhere.fake>

fixed newline at end of file errors.
also fixed small include bug in SupportKitTestAddon.cpp.


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


# 8adaaec7127c89e39277e0d3b9205bb138c591e3 27-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

More tests for BMemoryIO and BMallocIO


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


# 3f541a71c8b78ccc56aab7b9d092ea9bcec4b000 25-Sep-2002 Stefano Ceccherini <stefano.ceccherini@gmail.com>

First tests for BMemoryIO


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1176 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


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

+ 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