1 #!/bin/sh2 # 05_goldens: the engine and the conformance plugin agree, and the gate passes.3 #4 # A golden is a recorded session. The engine test starts the real binary against5 # the mock and speaks HTTP; the fault test proves that the client survives a6 # plugin that lies. Both are goldens in the sense of section 21.2: a recorded7 # behaviour that must not change.8 #9 # The gate is the same runner that a stranger's binding meets: the mock, the10 # Python fixture with no SDK, and the fault injector are judged by one set of11 # checks. A bundle is a standalone workspace, so its build and its tests name12 # its manifest; `ops/build.sh` puts every binary in one target directory.13 set -eu14 15 root=$(cd "$(dirname "$0")/../../.." && pwd)16 target=${CARGO_TARGET_DIR:-$root/target}17 case "$target" in18 /*) ;;19 *) target=$root/$target ;;20 esac21 export CARGO_TARGET_DIR=$target22 23 "$root/ops/build.sh" debug24 25 cargo test -p inf3r-server --test engine26 cargo test --manifest-path plugins/mock/x64-cpu/Cargo.toml --test faults27 cargo test -p inf3r-goldens28 cargo test -p inf3r-verify29 # Only the in-repo fixtures run on the CI host. An external engine bundle is30 # judged by the container gate, never by a host binary.31 cargo test --manifest-path plugins/mock/x64-cpu/Cargo.toml --test goldens32 cargo test --manifest-path plugins/toy/x64-cpu/Cargo.toml --test goldens33 cargo test --manifest-path plugins/echo/x64-cpu/Cargo.toml --test goldens34 35 "$target/debug/inf3r" verify --program "$target/debug/inf3r-mock-x64-cpu"36 # The bound bundle: a Python runtime behind one line of Rust. The gate skips37 # the checks that a process cannot keep, by name.38 "$target/debug/inf3r" verify --program "$target/debug/inf3r-echo-x64-cpu"39 "$target/debug/inf3r" verify --program plugins/fixtures/echo-py/run