Commit Graph
23 Commits
Author SHA1 Message Date
Kacper Kasper 010569f639 Add all system libs to test image profile
* Since we're testing the system we need all of it.

Change-Id: I3cdc444d6462e14c8f1a3efea6618f22efd37a86
2026-04-07 15:18:16 +02:00
Kacper Kasper 9b7512d459 unittests: copy dependencies of test addons
Change-Id: I62471381623c2e34a07901295f4813501e4688f8
2026-04-07 15:18:16 +02:00
Kacper Kasper a127ad48e6 cppunit: link elfpatcher on non-Haiku platforms
* haiku_unittests built on Linux wouldn't support debugger macros,
  even though they were running on Haiku.

Change-Id: I5d7832680320c918ed385642bc7cadcc6e53f9c6
2026-04-07 15:18:16 +02:00
Kacper Kasper a080f1277d cppunit: demangle class names
Change-Id: Ic5f97ec4fba5b502f52add016ff8d88596cc55ed
2026-04-07 15:18:16 +02:00
Kacper Kasper 26060c6792 unittests: skip loading non-.so files
* If any other file got into lib directory it would hang the runner.

Change-Id: I29e8a975d0366c732469fb444b9d23d6c2523c97
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10675
Reviewed-by: Kacper Kasper <[email protected]>
2026-04-07 13:16:46 +00:00
Kacper Kasper 499154375f Refactor Kernel FS tests
Change-Id: Ic8c403bf02a080c12d199bb44d30c694e600f351
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10674
Reviewed-by: waddlesplash <[email protected]>
2026-04-07 13:16:46 +00:00
Kacper Kasper 71fc6a97b4 Refactor Kernel Disk Manager tests
Change-Id: I8b29b6015401043e29c7103d31a478f96429db98
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10673
Reviewed-by: waddlesplash <[email protected]>
2026-04-07 13:16:46 +00:00
Kacper Kasper b3f01a5118 Refactor Kernel Debugger tests
Change-Id: I2a66b95931ac4a5ebe998bc11a1f59dfd2c667a4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10672
Reviewed-by: waddlesplash <[email protected]>
2026-04-07 13:16:46 +00:00
Kacper Kasper cebd4714ed vm: fix riscv64 build 2026-04-07 15:13:40 +02:00
Kacper Kasper 112776eead Refactor launch server tests
* Move SafemodeConditionContext definition from method to the class
  because GCC2 can't handle it (possibly because the method
  is defined in-line).

Change-Id: If432ddf7fdb044ff5d5b8ca87a20b60489bb7cd7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10682
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-07 04:35:59 +00:00
Kacper Kasper 9420780c0a Refactor libroot tests
Change-Id: I114e06ce63da2d5447ae301fc9c359759046bf86
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10681
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-07 04:35:59 +00:00
Kacper Kasper cdb71b052a Refactor app server unit tests
Change-Id: I7092450107931ff1c6da9b32beefb5fc9ce80ff1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10680
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-07 04:35:59 +00:00
Kacper Kasper e4f18e3cf4 Refactor Kernel Util tests
Change-Id: I4f5dbc664a621cdba3d928f2f358a73a07b71aa1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10671
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-06 20:03:08 +00:00
Kacper Kasper e05fd7f5a4 Disable kernel tests on legacy GCC
* Ideally we would build these tests using new GCC so we can run them
  on GCC2 image.
* We can't do that now because they are shared libraries and mangling
  schemes will not match.

Change-Id: Ie8cda81d50831a939d4b55c3760e197b1d83c59c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10670
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-06 20:03:08 +00:00
Kacper Kasper 95142492b9 kernel/util: fix gcc2 build
* Failed with parse error.

Change-Id: I67f5f80768ccc25069ac9c33e300347f835e8d83
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10669
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Kacper Kasper <[email protected]>
2026-04-06 14:24:26 +00:00
Kacper Kasper de60809cee tcp_shell: fix build on x86_64
* Partially reverts 295124473f.
* Compiling libkernelland_emu with _KERNEL_MODE define breaks
  system/kernel tests' build.

Change-Id: Iee4d7f6cbd08c255890af694199c7938bebe3195
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10668
Reviewed-by: waddlesplash <[email protected]>
2026-04-06 14:24:26 +00:00
Kacper Kasper ee10ca4b42 Preconfigure SSH server on test image
* This allows logging in to freshly built image using ssh.

Change-Id: I15baeee455827b73f12e1a222b166bd7975786dd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10426
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Kacper Kasper <[email protected]>
Reviewed-by: Priyanshu Gupta <[email protected]>
2026-03-15 20:55:27 +00:00
Kacper Kasper bd6b50bed7 Refactor Support Kit tests
* Use CPPUNIT_TEST(_SUITE) macros and autoregistration.
* Remove unnecessary header files.
* Consolidate Archivable, Autolock, MemoryIO and MallocIO tests into
  one .cpp file.
* This structure makes it easier to add new tests - from adding .cpp
  and .h + updating Addon.cpp file (3 files), only one .cpp file is
  needed now.
* Convert string_utf8 test from standalone app to CppUnit test.

Change-Id: I18d90eb66b7cfc5576626b66ed85e47eb64547bf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10399
Reviewed-by: Kacper Kasper <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-03-04 17:58:38 +00:00
Kacper Kasper dfa51c4fb8 Don't add extra packages to test image
* Test inherits from minimum target.
2026-02-27 20:09:37 +01:00
Kacper Kasper 63ad603268 Disable flaky/failing tests
* Adjust UnitTestResource rule to allow creating directory
  structures.

Change-Id: I109688d47a457015a7b35cda9616ec4b5f40e9c5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10356
Reviewed-by: Kacper Kasper <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-02-23 18:31:03 +00:00
Kacper Kasper 4d34786610 tests: Fix TestShell to include all tests
* Conversion from BTestSuite to CppUnit::TestSuite excluded some
  test suites due to empty name.

Change-Id: I8ab597df82c8cafd9911415c217e32ecbf7efef6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10352
Reviewed-by: Adrien Destugues <[email protected]>
2026-02-21 11:54:08 +00:00
Kacper Kasper 7556a0d9fb app_server: Fix crash when gradient has no color stops
Change-Id: Ic84b40965552b27b01eb8d6b50e51faed1b4c9ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10351
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-02-21 11:53:59 +00:00
Kacper Kasper dc8424dd5e unittests: Start simplifying test structure
* Rework ByteOrderTest and DateTimeTest to use autoregistration.
* Functional changes in ByteOrderTest are confirmed in git history
  to be R5 compatibility fixes. This doesn't include B_ASCII_TYPE -
  it seems it has never been part of is_type_swapped().
* Autoregistered test names start with a number - this is because
  RTTI is used to create them. Disabling RTTI is not an option
  because CppUnit in our repo has a broken macro which always sets
  the name to "ATestFixtureType". This is probably fixed in newer
  CppUnit versions.

Change-Id: I56ab5df6e998b6f47fca3c3458a56a761c1740a8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10266
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Kacper Kasper <[email protected]>
2026-02-20 19:31:36 +00:00