bitwire-testee
bitruntime's driver-1 testees for bitwire's
bitwire/1 conformance contract,
edition 1. A testee is one bitruntime peer under remote control. It reads
requests as JSON lines on stdin and writes answers as JSON lines on stdout.
bitwire's runner drives two testees against each other and judges the
answers; a testee never sees the expectations.
Both testees use only bitruntime's public API. They are ported from nightseam
v0.6.0's testees (5cc9723), with provenance in NOTICE.
|
Go |
TypeScript |
| Source |
go/ |
ts/src/ |
| Released as |
the module github.com/Bitspark/bitruntime, package cmd/bitwire-testee/go, at the release tag |
the release asset bitspark-bitruntime-testee-<version>.tgz, whose bin is bitwire-testee |
| Build |
go build -o bitwire-testee github.com/Bitspark/bitruntime/cmd/bitwire-testee/go inside a module that requires the release (the directory is named go, so name the output) |
npm install <asset URL>; it installs the runtime from the same release's asset |
| Run |
./bitwire-testee |
npx bitwire-testee |
Claims. Each testee implements the core layers, seam and peer, with the
features listen (WebSocket), pipe, lazy and propagator. Tunnel ops
answer unsupported until bitruntime implements tunnels
(bitruntime#11). So do the
excluded ops of the contract's §4.5 (the identity exchange, the recorded-wire
witness, live.*), and the optional observer, which bitruntime does not have.
node scripts/testee-smoke.mjs drives both testees through hello, a peer
pairing in each direction with an echo call, and bye. That checks the
testees, not conformance, which bitwire's runner judges
(bitruntime#20).