Added run time tests for PIT
Also changed the TTY a bit Merged new run time testing Code layout change Feedback Feedback 2
This commit is contained in:
parent
5d59294c17
commit
419d8ad585
5 changed files with 469 additions and 110 deletions
|
@ -10,7 +10,10 @@ def get_test_cases(TestCase):
|
|||
TestCase("ISR tests", [r"ISR: Tested registered handlers", r"ISR: Tested opened IDT entries"]),
|
||||
TestCase("IRQ init", [r"Init irq", r"Done"]),
|
||||
TestCase("IRQ tests", [r"IRQ: Tested registered handlers", r"IRQ: Tested opened IDT entries"]),
|
||||
TestCase("PIT init", [r"Init pit", r".+", r"Done"]),
|
||||
TestCase("PIT init", [r"Init pit"]),
|
||||
TestCase("PIT init", [r".+"], r"\[DEBUG\] "),
|
||||
TestCase("PIT init", [r"Done"]),
|
||||
TestCase("PIT tests", [r"PIT: Tested init", r"PIT: Tested wait ticks", r"PIT: Tested wait ticks 2"]),
|
||||
TestCase("Paging init", [r"Init paging", r"Done"]),
|
||||
TestCase("Paging tests", [r"Paging: Tested accessing unmapped memory", r"Paging: Tested accessing mapped memory"]),
|
||||
TestCase("Syscalls init", [r"Init syscalls", r"Done"]),
|
||||
|
|
|
@ -91,3 +91,9 @@ pub fn init(mem_profile: *const MemProfile, allocator: *Allocator, comptime opti
|
|||
// When I come on to the mem.zig testing, I'll fix :)
|
||||
//return mock_framework.performAction("init", void, mem_profile, allocator);
|
||||
}
|
||||
|
||||
// User defined mocked functions
|
||||
|
||||
pub fn mock_disableInterrupts() void {}
|
||||
|
||||
pub fn mock_enableInterrupts() void {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue