1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 07:28:11 +00:00
serenity/Userland/Libraries
Andrew Kaster 35c0a6c54d AK+Userland: Move AK/TestSuite.h into LibTest and rework Tests' CMake
As many macros as possible are moved to Macros.h, while the
macros to create a test case are moved to TestCase.h. TestCase is now
the only user-facing header for creating a test case. TestSuite and its
helpers have moved into a .cpp file. Instead of requiring a TEST_MAIN
macro to be instantiated into the test file, a TestMain.cpp file is
provided instead that will be linked against each test. This has the
side effect that, if we wanted to have test cases split across multiple
files, it's as simple as adding them all to the same executable.

The test main should be portable to kernel mode as well, so if
there's a set of tests that should be run in self-test mode in kernel
space, we can accomodate that.

A new serenity_test CMake function streamlines adding a new test with
arguments for the test source file, subdirectory under /usr/Tests to
install the test application and an optional list of libraries to link
against the test application. To accomodate future test where the
provided TestMain.cpp is not suitable (e.g. test-js), a CUSTOM_MAIN
parameter can be passed to the function to not link against the
boilerplate main function.
2021-04-25 09:36:49 +02:00
..
LibArchive AK+Userland: Use idan.horowitz@serenityos.org for my copyright headers 2021-04-22 22:42:38 +02:00
LibAudio AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibC AK+Userland: Move AK/TestSuite.h into LibTest and rework Tests' CMake 2021-04-25 09:36:49 +02:00
LibChess Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibCompress AK+Userland: Move AK/TestSuite.h into LibTest and rework Tests' CMake 2021-04-25 09:36:49 +02:00
LibCore AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibCoreDump Everywhere: Use linusg@serenityos.org for my copyright headers 2021-04-22 22:51:19 +02:00
LibCpp LibCpp: Convert ScopeLogger to use AK:SourceLocation 2021-04-25 09:32:03 +02:00
LibCrypt Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibCrypto AK+Userland: Use mpfard@serenityos.org for my copyright headers 2021-04-22 22:19:09 +02:00
LibDebug Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibDesktop AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibDiff Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibELF LibELF: Avoid calculating symbol hashes when we don't need them 2021-04-23 23:35:36 +02:00
LibGemini AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibGfx AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibGUI VimEditingEngine: Add handling { and } to move between empty lines 2021-04-25 09:34:51 +02:00
LibHTTP AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibImageDecoderClient Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibIPC Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibJS LibJS: Use linusg@serenityos.org for my new copyright headers, too 2021-04-24 20:16:31 +02:00
LibKeyboard Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibLine Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibM LibM: Add more macros; increase precision of existing macros 2021-04-23 09:11:07 +02:00
LibMarkdown Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibPCIDB AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibProtocol AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibPthread Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibRegex AK+Userland: Move AK/TestSuite.h into LibTest and rework Tests' CMake 2021-04-25 09:36:49 +02:00
LibSQL AK+Userland: Move AK/TestSuite.h into LibTest and rework Tests' CMake 2021-04-25 09:36:49 +02:00
LibSymbolClient Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibSyntax Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibSystem Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibTest AK+Userland: Move AK/TestSuite.h into LibTest and rework Tests' CMake 2021-04-25 09:36:49 +02:00
LibTextCodec Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibThread AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibTLS LibTLS: Call the read hooks after processing messages too 2021-04-23 13:14:35 +02:00
LibTTF AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibVT Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibWeb LibWeb: Utilize SourceLocation for HTMLDocumentParser logging 2021-04-25 09:32:03 +02:00
LibWebSocket AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
LibX86 UE+LibX86: Support bigger reads and writes 2021-04-23 22:50:53 +02:00
CMakeLists.txt LibSQL: Introduce a SQL library with a tokenizer 2021-04-20 18:28:34 +02:00