Back to catalog

pMissionHash

H02 pMissionHash Unit

Mission utility tests for pMissionHash. These cases verify custom hash variable names, short-hash disable behavior, long-hash disable behavior, and RESET_MHASH-driven hash changes.

Stem Mission

Baseline scenario context

The stem mission runs a single shoreside MOOS community with pMissionHash, pMissionEval, uTimerScript, logging, and process-watch support. Case overlays change pMissionHash settings while pMissionEval consumes the hash mail as the mission-owned grader.

Examples

Representative runs

These pMissionHash GIFs are generated mail-flow views instead of raw pMarineViewer captures because the meaningful evidence is hash publication names, disabled outputs, and reset-driven hash changes. The visuals call out the evidence that makes each case pass.

Custom Hash Vars

Description: Sets mission_hash_var=CUSTOM_MISSION_HASH and mhash_short_var=CUSTOM_MHASH_SHORT, testing that both hash publications move to the configured names rather than being duplicated under the defaults; passes when the evaluator receives a full mhash=...,utc=... value and a two-word short hash through the custom variables and the .alog contains neither MISSION_HASH nor MHASH.

Hash Reset

Description: Posts RESET_MHASH=true at mission time 5 and evaluates after pMissionHash's next 30-second publication, testing runtime hash regeneration; passes when the reported prehash and reset_hash are different two-word hashes and the .alog contains at least two distinct MISSION_HASH payloads sourced by pMissionHash.

Case Matrix

All cases

hash_custom_vars_pass

Sets mission_hash_var=CUSTOM_MISSION_HASH and mhash_short_var=CUSTOM_MHASH_SHORT, testing that both hash publications move to the configured names rather than being duplicated under the defaults; passes when the evaluator receives a full mhash=...,utc=... value and a two-word short hash through the custom variables and the .alog contains neither MISSION_HASH nor MHASH.

hash_short_off_pass

Sets mhash_short_var=off while retaining MISSION_HASH, testing suppression of the standalone short-hash post and pMissionEval's derivation of $[MHASH_SHORT] from the full payload; passes when no MHASH mail appears and the row contains both a full hash and a derived two-word short hash.

hash_long_off_pass

Sets mission_hash_var=off while leaving mhash_short_var=MHASH, testing the long-hash disable path; passes when the evaluator grades pass and neither MISSION_HASH nor MHASH appears in the .alog.

hash_reset_changes_pass

Posts RESET_MHASH=true at mission time 5 and evaluates after pMissionHash's next 30-second publication, testing runtime hash regeneration; passes when the reported prehash and reset_hash are different two-word hashes and the .alog contains at least two distinct MISSION_HASH payloads sourced by pMissionHash.

Source links

Harness README Mission README