Back to catalog

Utility Infrastructure

H01 uProcessWatch Unit

Utility infrastructure tests for uProcessWatch. These cases verify process summary publications, custom present posts, event and summary post remapping, full summaries, and expected missing-process detection.

Stem Mission

Baseline scenario context

The stem mission runs a single shoreside MOOS community with uProcessWatch plus small watched peer apps. Case overlays change only process-watch configuration and mission-owned process-presence pass/fail conditions.

Examples

Representative runs

These uProcessWatch GIFs are generated explanatory views instead of raw pMarineViewer captures because the meaningful evidence is process-presence summaries and mapped output variables. The visuals call out the evidence that makes each case pass.

Mapped Summary

Description: Maps the short summary from PROC_WATCH_SUMMARY to UTIL_PROC_SUMMARY; passes before the deadline when the destination is published, the source is never published, and the ordinary full summary contains all three expected (1/0) entries.

AWOL Detection

Description: Watches nonexistent pGhost:GHOST_PRESENT to exercise configured-process loss; the harness passes with expected=watch_awol before the 125-second fallback when both booleans are false and the full summary contains pGhost(1/1).

Case Matrix

All cases

processwatch_all_present_pass

Enables watch_all=true while excluding the command-line utility patterns; passes before the six-second deadline when PROC_WATCH_ALL_OK=true and PROC_WATCH_SUMMARY is nonempty.

processwatch_custom_present_post_pass

Watches pHostInfo:HOSTINFO_PRESENT to exercise the custom presence-post syntax; passes before the deadline when both booleans are true and the full summary contains pHostInfo(1/0).

processwatch_multi_present_pass

Watches pHostInfo, pMissionEval, and uLoadWatch together to verify per-process accounting; passes before the deadline when all-watch health is true and the full summary contains all three exact (1/0) entries.

processwatch_post_mapping_pass

Maps the short summary from PROC_WATCH_SUMMARY to UTIL_PROC_SUMMARY; passes before the deadline when the destination is published, the source is never published, and the ordinary full summary contains all three expected (1/0) entries.

processwatch_full_summary_mapping_pass

Maps the full summary from PROC_WATCH_FULL_SUMMARY to UTIL_PROC_FULL_SUMMARY; passes before the deadline when the source is never published and the mapped payload contains the exact (1/0) entry for each of the three watched processes.

processwatch_event_mapping_present_pass

Watches pHostInfo and maps PROC_WATCH_EVENT to UTIL_PROC_EVENT; passes before the deadline when a mapped event is published, the source event is never published, and the full summary contains pHostInfo(1/0).

processwatch_missing_awol_fail

Watches nonexistent pGhost:GHOST_PRESENT to exercise configured-process loss; the harness passes with expected=watch_awol before the 125-second fallback when both booleans are false and the full summary contains pGhost(1/1).

Source links

Harness README Mission README