|
SimpleKernel 1.17.0
|


Go to the source code of this file.
Classes | |
| struct | TestResult |
| 单个测试线程的结果记录 More... | |
Macros | |
| #define | EXPECT_EQ(val1, val2, msg) |
| #define | EXPECT_NE(val1, val2, msg) |
| #define | EXPECT_GT(val1, val2, msg) |
| #define | EXPECT_LT(val1, val2, msg) |
| #define | EXPECT_GE(val1, val2, msg) |
| #define | EXPECT_LE(val1, val2, msg) |
| #define | EXPECT_TRUE(cond, msg) |
| #define | EXPECT_FALSE(cond, msg) |
Enumerations | |
| enum class | TestThreadStatus : uint8_t { kPending , kRunning , kPassed , kFailed , kTimeout } |
| 测试线程运行状态 More... | |
Functions | |
| template<typename T1 , typename T2 > | |
| bool | expect_eq_helper (const T1 &val1, const T2 &val2, const char *msg) |
| template<typename T1 , typename T2 > | |
| bool | expect_ne_helper (const T1 &val1, const T2 &val2, const char *msg) |
| template<typename T1 , typename T2 > | |
| bool | expect_gt_helper (const T1 &val1, const T2 &val2, const char *msg) |
| template<typename T1 , typename T2 > | |
| bool | expect_lt_helper (const T1 &val1, const T2 &val2, const char *msg) |
| template<typename T1 , typename T2 > | |
| bool | expect_ge_helper (const T1 &val1, const T2 &val2, const char *msg) |
| template<typename T1 , typename T2 > | |
| bool | expect_le_helper (const T1 &val1, const T2 &val2, const char *msg) |
| auto | ctor_dtor_test () -> bool |
| auto | spinlock_test () -> bool |
| auto | virtual_memory_test () -> bool |
| auto | interrupt_test () -> bool |
| auto | fifo_scheduler_test () -> bool |
| auto | rr_scheduler_test () -> bool |
| auto | cfs_scheduler_test () -> bool |
| auto | idle_scheduler_test () -> bool |
| auto | thread_group_system_test () -> bool |
| 线程组系统测试入口 | |
| auto | wait_system_test () -> bool |
| Wait 系统测试入口 | |
| auto | clone_system_test () -> bool |
| auto | exit_system_test () -> bool |
| Exit 系统测试入口 | |
| auto | ramfs_system_test () -> bool |
| auto | fatfs_system_test () -> bool |
| auto | memory_test () -> bool |
| auto | kernel_task_test () -> bool |
| auto | user_task_test () -> bool |
| auto | mutex_test () -> bool |
| void | QemuExit (bool success) |
| 测试结束后退出 QEMU,success=true 表示全部通过 | |
| #define EXPECT_EQ | ( | val1, | |
| val2, | |||
| msg | |||
| ) |
Definition at line 126 of file system_test.h.
| #define EXPECT_FALSE | ( | cond, | |
| msg | |||
| ) |
Definition at line 162 of file system_test.h.
| #define EXPECT_GE | ( | val1, | |
| val2, | |||
| msg | |||
| ) |
Definition at line 146 of file system_test.h.
| #define EXPECT_GT | ( | val1, | |
| val2, | |||
| msg | |||
| ) |
Definition at line 136 of file system_test.h.
| #define EXPECT_LE | ( | val1, | |
| val2, | |||
| msg | |||
| ) |
Definition at line 151 of file system_test.h.
| #define EXPECT_LT | ( | val1, | |
| val2, | |||
| msg | |||
| ) |
Definition at line 141 of file system_test.h.
| #define EXPECT_NE | ( | val1, | |
| val2, | |||
| msg | |||
| ) |
Definition at line 131 of file system_test.h.
| #define EXPECT_TRUE | ( | cond, | |
| msg | |||
| ) |
Definition at line 156 of file system_test.h.
|
strong |
| auto cfs_scheduler_test | ( | ) | -> bool |
Definition at line 554 of file cfs_scheduler_test.cpp.

| auto clone_system_test | ( | ) | -> bool |
Definition at line 425 of file clone_system_test.cpp.

| auto ctor_dtor_test | ( | ) | -> bool |
Definition at line 63 of file ctor_dtor_test.cpp.

| auto exit_system_test | ( | ) | -> bool |
Exit 系统测试入口
Definition at line 452 of file exit_system_test.cpp.

| bool expect_eq_helper | ( | const T1 & | val1, |
| const T2 & | val2, | ||
| const char * | msg | ||
| ) |
Definition at line 19 of file system_test.h.

| bool expect_ge_helper | ( | const T1 & | val1, |
| const T2 & | val2, | ||
| const char * | msg | ||
| ) |
Definition at line 91 of file system_test.h.

| bool expect_gt_helper | ( | const T1 & | val1, |
| const T2 & | val2, | ||
| const char * | msg | ||
| ) |
Definition at line 55 of file system_test.h.

| bool expect_le_helper | ( | const T1 & | val1, |
| const T2 & | val2, | ||
| const char * | msg | ||
| ) |
Definition at line 109 of file system_test.h.

| bool expect_lt_helper | ( | const T1 & | val1, |
| const T2 & | val2, | ||
| const char * | msg | ||
| ) |
Definition at line 73 of file system_test.h.

| bool expect_ne_helper | ( | const T1 & | val1, |
| const T2 & | val2, | ||
| const char * | msg | ||
| ) |
Definition at line 37 of file system_test.h.

| auto fatfs_system_test | ( | ) | -> bool |
Definition at line 16 of file fatfs_system_test.cpp.

| auto fifo_scheduler_test | ( | ) | -> bool |
Definition at line 328 of file fifo_scheduler_test.cpp.

| auto idle_scheduler_test | ( | ) | -> bool |
Definition at line 246 of file idle_scheduler_test.cpp.

| auto interrupt_test | ( | ) | -> bool |
Definition at line 22 of file interrupt_test.cpp.

| auto kernel_task_test | ( | ) | -> bool |
Definition at line 51 of file kernel_task_test.cpp.

| auto memory_test | ( | ) | -> bool |
Definition at line 24 of file memory_test.cpp.

| auto mutex_test | ( | ) | -> bool |
Definition at line 297 of file mutex_test.cpp.

|
inline |
测试结束后退出 QEMU,success=true 表示全部通过
Definition at line 196 of file system_test.h.
| auto ramfs_system_test | ( | ) | -> bool |
Definition at line 12 of file ramfs_system_test.cpp.

| auto rr_scheduler_test | ( | ) | -> bool |
Definition at line 431 of file rr_scheduler_test.cpp.

| auto spinlock_test | ( | ) | -> bool |
Definition at line 348 of file spinlock_test.cpp.

| auto thread_group_system_test | ( | ) | -> bool |
线程组系统测试入口
Definition at line 243 of file thread_group_system_test.cpp.

| auto user_task_test | ( | ) | -> bool |
Definition at line 22 of file user_task_test.cpp.

| auto virtual_memory_test | ( | ) | -> bool |
Definition at line 29 of file virtual_memory_test.cpp.

| auto wait_system_test | ( | ) | -> bool |
Wait 系统测试入口
Definition at line 326 of file wait_system_test.cpp.
