Smoke Test and Validation

SolidGroundUX DocumentationSolidGroundUX
NL

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

Internal functions
FunctionPurposeArgumentsOutput
_framework_test_root_pathResolve an installed or staged Framework path.- $1 — Absolute Framework-relative path.Writes the resolved path to stdout.
_framework_test_resultPrint a validation outcome and increment its counter.- $1 — Test label.—
_framework_test_suite_summarySummarize validation counters for a test area.- $1 — Area name.Prints pass/fail/skip counts and a summary message.
_framework_test_validate_installationCheck required Framework files and public command wrappers.——
_smoketest_show_licenseDisplay the installed license.——
_smoketest_finish_testPrint the separator following a smoke test.——
_smoketest_wait_for_returnWait for one keypress on the controlling terminal.——
_smoketest_status_iconReturn the colored icon for a completed smoke test.- $1 — Smoke test identifier.Writes an ANSI-colored status icon or a space.
_smoketest_run_oneExecute a smoke test and record its result.- $1 — Test identifier.—
_smoketest_render_menuRender the interactive smoke-test menu.——
_smoketest_read_choiceRead and validate a smoke-test menu choice.- $1 — Name of the output variable.—
_smoketest_dispatch_oneDispatch a numbered smoke-test selection.- $1 — Selection number (1-12).—
_smoketest_run_all_testsExecute all interactive smoke tests and show their summary.——
_framework_test_run_smoke_menuRun the interactive smoke-test selection loop.——
_framework_test_run_allRun 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.