agent-block 0.12.0

Lua-first Agent Runtime built on AgentMesh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod common;

use predicates::prelude::*;

#[test]
fn sh_exec_echo() {
    common::agent_block_cmd()
        .args(["-s", &common::fixture("sh_exec.lua")])
        .assert()
        .success()
        .stdout(
            predicate::str::contains("ok=true")
                .and(predicate::str::contains("code=0"))
                .and(predicate::str::contains("stdout=ok")),
        );
}