Validate the framework and exercise its interactive UI helpers
Source: target-root/usr/local/libexec/solidgroundux/sgnd-smoketest.sh
Validate the framework and exercise its interactive UI helpers
Public functions
- Run simple shell input tests
- Run interactive ask_selection tests
- Run interactive ask helper tests
- Run console message helper tests
- Run console message visibility tests for every log level
- Run file logging tests for every log level
- Display the active SolidGroundUX logfile
- Check the installed SolidGroundUX MOTD scripts
- Run transient progress line tests
- Display framework theme color samples
- Preview the DataTable theme colors
- Browse and preview installed UI themes
- Bootstrap the test runner and dispatch the requested suite
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_framework_test_root_path | Resolve an installed or staged Framework path. | - $1 — Absolute Framework-relative path. | Writes the resolved path to stdout. |
_framework_test_result | Print a validation outcome and increment its counter. | - $1 — Test label. | — |
_framework_test_suite_summary | Summarize validation counters for a test area. | - $1 — Area name. | Prints pass/fail/skip counts and a summary message. |
_framework_test_validate_installation | Check required Framework files and public command wrappers. | — | — |
_smoketest_show_license | Display the installed license. | — | — |
_smoketest_finish_test | Print the separator following a smoke test. | — | — |
_smoketest_wait_for_return | Wait for one keypress on the controlling terminal. | — | — |
_smoketest_status_icon | Return the colored icon for a completed smoke test. | - $1 — Smoke test identifier. | Writes an ANSI-colored status icon or a space. |
_smoketest_run_one | Execute a smoke test and record its result. | - $1 — Test identifier. | — |
_smoketest_render_menu | Render the interactive smoke-test menu. | — | — |
_smoketest_read_choice | Read and validate a smoke-test menu choice. | - $1 — Name of the output variable. | — |
_smoketest_dispatch_one | Dispatch a numbered smoke-test selection. | - $1 — Selection number (1-12). | — |
_smoketest_run_all_tests | Execute all interactive smoke tests and show their summary. | — | — |
_framework_test_run_smoke_menu | Run the interactive smoke-test selection loop. | — | — |
_framework_test_run_all | Run installation validation and the interactive smoke suite. | — | — |
Description
Framework-owned smoke-test and validation implementation for SolidGroundUX. Supports individual validation suites, a complete Run All pass, and the original interactive UI smoke-test menu.
Design principles
- Validation suites are non-destructive.
- Console registration is tested after explicitly loading all discovered modules, avoiding false failures caused by the Management Console's lazy-loading model.
- Existing module validators remain owned by their respective modules and are invoked rather than duplicated here.
- Test sections use one consistent finish and summary pattern.
Usage
Run the executable from its shell command (or installed wrapper):
sgnd-smoketest --suite smoke
sgnd-smoketest --suite all
sgnd-smoketest --view-log
Script-specific options:
--suite NAME,-s: Test suite to run (choices:smoke,installation,all).--view-log: Display the active SolidGroundUX logfile and exit.
