Files
herolib/lib/osal/screen/screen_test.v
Mahmoud Emad ccfc7c4656 fix: improve package management and screen status
- Fix issues in package installation and removal across
different platforms (Ubuntu, macOS, Alpine, Arch).
- Improve error handling and add sudo support where
necessary.
- Enhance screen status check to accurately reflect
process activity.
- Address minor bugs in `db.v`, `done.v`, and
`net_test.v`.
- Correct minor inconsistencies in package names.
2024-12-25 17:12:08 +02:00

18 lines
398 B
V

module screen
import freeflowuniverse.herolib.ui.console
import freeflowuniverse.herolib.osal
import os
import time
pub fn testsuite_begin() ! {
mut screen_factory := new(reset: true)!
}
pub fn test_screen_status() ! {
mut screen_factory := new()!
mut screen := screen_factory.add(name: 'testservice', cmd: 'redis-server --port 1234')!
status := screen.status()!
assert status == .active
}