1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Test runner helpers for simulating CLI binaries.
//!
//! Purpose:
//! - Test runner helpers for simulating CLI binaries.
//!
//! Responsibilities:
//! - Create executable fake runner binaries for tests that need runner output.
//! - Ensure deterministic setup of test runner scripts under a temp directory.
//!
//! Not handled here:
//! - Test orchestration or assertions (handled by individual tests).
//! - Cross-platform runner command semantics beyond basic executable creation.
//!
//!
//! Usage:
//! - Used through the crate module tree or integration test harness.
//!
//! Invariants/assumptions:
//! - Callers provide valid script content compatible with the current platform shell.
//! - Unix permissions are required for executability on Unix platforms.
use ;
use Result;
/// Create a fake runner binary in `dir/bin/<name>` with the provided script contents.
pub