]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
test: expand test suite with security unit tests and GDB scripted checks
authorTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 11:44:55 +0000 (08:44 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 02:20:50 +0000 (23:20 -0300)
commite2fb4ca028c177c51a2b602660a3109c202a2914
treee8599ccbb9f3301f6a6f0f8070b55b24543ca504
parent6d366bf2cde51daac4af4aabf0dde0589167e424
test: expand test suite with security unit tests and GDB scripted checks

New test_security.c (19 tests):
- user_range_ok: 11 tests covering NULL, zero-len, valid user addr,
  kernel addr rejection, boundary spanning, overflow, max user range
- bitmap: 4 tests for set/unset/cross-byte/all-bits operations
- eflags sanitization: 4 tests verifying IOPL clearing and IF forcing

New gdb_checks.py:
- Automated GDB script for QEMU+GDB integrity checks
- Verifies heap magic, PMM bitmap frame 0, max_frames, VGA mapping
- Usage: make test-gdb

Updated Makefile:
- test-host now runs both test_utils (28) and test_security (19) = 47 tests
- Added test-gdb target for GDB scripted checks
- Total: 47 host unit tests + 19 smoke checks = 66 automated tests
Makefile
tests/gdb_checks.py [new file with mode: 0644]
tests/test_security.c [new file with mode: 0644]