interplane.Get Omega
Read in your language

interplane-mv

INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority.

Brought by drakestapleton

branch main Branches Tags History

interplane-mv / rust / crates / interplane-conformance / tests / default_build.rs

21 lines · 853 bytes Raw Blame History
1//! The default build must not contain the negative controls (bench/PROTOCOL-0.3.md section 6).
2#![cfg(not(feature = "negative-controls"))]
3use std::process::Command;
4
5#[test]
6fn default_build_refuses_a_variant() {
7 let fixtures = concat!(env!("CARGO_MANIFEST_DIR"), "/../../../conformance/fixtures");
8 let out = Command::new(env!("CARGO_BIN_EXE_interplane-conformance"))
9 .args([fixtures, "--out", "/dev/null", "--variant", "V4"])
10 .output()
11 .unwrap();
12 assert_eq!(out.status.code(), Some(2));
13 assert!(String::from_utf8_lossy(&out.stderr).contains("negative-controls"));
14}
15
16#[test]
17fn default_binary_carries_no_variant_code() {
18 let bytes = std::fs::read(env!("CARGO_BIN_EXE_interplane-conformance")).unwrap();
19 let marker = b"NEGCTL_BUILT_IN";
20 assert!(!bytes.windows(marker.len()).any(|w| w == marker));
21}