Expand description
Conformance suite for Oscyl synth drivers.
Every driver calls run from its own tests/conformance.rs, against
its own simulator. A failure panics with "<driver id>: <check>: <what>".
Modules§
- pump
- Drives a session against a simulator on a virtual clock: time only jumps to the session’s next deadline, so a lost reply times out at once and nothing ever sleeps.
Structs§
- Quality
- What a driver’s generated sounds must be beyond valid, by its own rules.
Functions§
- app_
hooks - The hooks apps show around the editor: the demo library holds valid programs that fit the writable slots, the demo simulator answers the device inquiry as the driver’s synth, the list facet is an in-range choice field, and firmware text never panics on the simulator’s reply.
- audition
- curation_
covers_ every_ field - Every field is in exactly one section or excluded, and what the editor shows is complete: titles, labels, and controls that fit the field.
- curation_
shape - Whether
clays outnfields: at least one page, not every field excluded (a raw dump or an empty editor is not curation), every index belownand in exactly one section or the excluded list, titles and sections non-empty. - faults_
never_ report_ false_ success - fields
- file_
formats_ round_ trip - Every vendor format gives back the program bytes it was given, and the author and comment unless it holds none; unknown extensions are refused.
- formats_
every_ value - Every field formats its minimum and maximum as non-empty text.
- generated_
sounds_ are_ good - The quality gate: every character, at 200 seeds and at every corner of
the four macros (each at 0, 0.5 and 1), generates a valid, audible
program at or under the level cap; and the six sounds of a dealt hand
differ pairwise in at least
min_spreadfields, so a hand is never six of nearly the same sound. Each seed takes one corner, so the 81 corners come round more than twice per character. - generation_
is_ deterministic_ and_ valid - Same recipe, same bytes; every program valid; restricted and fixed fields keep the base; kept pages come from the base; vary and breed are deterministic and leave fixed fields alone.
- init_
program - live_
messages_ are_ well_ formed - Live messages exist exactly when the synth takes live changes, and each is complete channel-voice MIDI on the channel asked for.
- lost_
replies_ fail - Every simulator offers
lose_reply(every reply lost). Under it every op must endFailed: a lost reply is never success. - names
- presentation_
is_ consistent - The editor’s other data agrees with the curation and the schema:
emphasized fields are shown, labels exist, categories list what
categorysays, signature pages exist, and graphs, handles and drags stay within the pages and fields. - progress
- recognizes_
its_ simulator - The driver names its ports and recognises its simulator’s answer to the device inquiry, but not the inquiry itself (a port looping our output back).
- rejects_
bad_ targets - Writes to read-only banks or past the last bank, and reads past the
last bank, are refused at
submitand send nothing. - run
- Every check, in order.
- well_
formed - Exactly one complete channel-voice message on
channel: a status byte and its data bytes (1 for program change and channel pressure, else 2), each below 0x80. - write_
then_ read_ back - wrong_
length_ programs