⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module testing

Module testing 

Source
Expand description

Package Testing and Security Scanning

Provides automated package validation through test definition, execution framework, and pre-install security scanning. The test runner validates test definitions; actual process spawning is deferred to user-space. The security scanner checks package file paths and requested capabilities against known-suspicious patterns before installation.

NOTE: Many types in this module are forward declarations for user-space APIs. They will be exercised when user-space process execution is functional. See TODO(user-space) markers for specific activation points.

Structs§

PackageSecurityScanner
Pre-install package security scanner.
PackageTest
Definition of a single package test.
ScanPattern
A pattern used to detect suspicious content in a package.
SecurityFinding
A security finding produced by the package scanner.
TestResult
Result of executing a single package test.
TestRunner
Test runner that manages and executes package tests.

Enums§

ScanPatternType
Classification of scan pattern types.
ScanSeverity
Severity level for package security scan findings.
TestType
Classification of package tests.

Functions§

run_package_tests
Run all tests defined for a package.