diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-21 09:09:33 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-21 09:25:16 +0100 |
| commit | 463e7472e737fb8259a30304e729772041ea5498 (patch) | |
| tree | 0cd4aee9d7d0eea2d5279f76bf37fd6887fbc65d /public/frameworks/KernelTest.fwrk/src | |
| parent | c464e5800961c809c73d4180f8a66885b53c63d7 (diff) | |
feat: kernel: NeKit improvements and new TOML file.
feat: frameworks: CoreFoundation improvements and new KTest framework.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'public/frameworks/KernelTest.fwrk/src')
| -rw-r--r-- | public/frameworks/KernelTest.fwrk/src/CSymbols.cc | 21 | ||||
| -rw-r--r-- | public/frameworks/KernelTest.fwrk/src/UnitTests.cc | 17 |
2 files changed, 21 insertions, 17 deletions
diff --git a/public/frameworks/KernelTest.fwrk/src/CSymbols.cc b/public/frameworks/KernelTest.fwrk/src/CSymbols.cc new file mode 100644 index 00000000..575525f0 --- /dev/null +++ b/public/frameworks/KernelTest.fwrk/src/CSymbols.cc @@ -0,0 +1,21 @@ +/* ======================================== + + Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. + +======================================== */ + +#include <public/frameworks/KernelTest.fwrk/headers/TestCase.h> + +/// ================================================================================ +/// @brief Function to run breaking test. +/// ================================================================================ +EXTERN_C Kernel::Void KT_TestBreak() { + KT_RUN_TEST(AlwaysBreak); +} + +/// ================================================================================ +/// @brief Function to run passing test. +/// ================================================================================ +EXTERN_C Kernel::Void KT_TestPass() { + KT_RUN_TEST(AlwaysPass); +}
\ No newline at end of file diff --git a/public/frameworks/KernelTest.fwrk/src/UnitTests.cc b/public/frameworks/KernelTest.fwrk/src/UnitTests.cc deleted file mode 100644 index ab6effa9..00000000 --- a/public/frameworks/KernelTest.fwrk/src/UnitTests.cc +++ /dev/null @@ -1,17 +0,0 @@ -/* ======================================== - - Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. - -======================================== */ - -#include <public/frameworks/KernelTest.fwrk/headers/KernelTest.h> - -EXTERN_C Kernel::Void KT_TestBreak() { - KT_ALWAYS_BREAK brk; - brk.Run(); -} - -EXTERN_C Kernel::Void KT_TestGood() { - KT_ALWAYS_GOOD good; - good.Run(); -}
\ No newline at end of file |
